Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jsiirola
Copy link
Member

Fixes #2844.

Summary/Motivation:

This restores the old (pre6.6.0) slice API.

Changes proposed in this PR:

  • add argument default to restore previous slice.wildcard_*() API
  • revert change to test to exercise old API

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (d8cbd46) 87.44% compared to head (9c3aefe) 87.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2849      +/-   ##
==========================================
- Coverage   87.44%   87.43%   -0.01%     
==========================================
  Files         771      771              
  Lines       89539    89539              
==========================================
- Hits        78294    78292       -2     
- Misses      11245    11247       +2     
Flag Coverage Δ
linux 84.50% <100.00%> (+<0.01%) ⬆️
osx 74.54% <100.00%> (+<0.01%) ⬆️
other 84.68% <100.00%> (+<0.01%) ⬆️
win 82.08% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pyomo/core/base/indexed_component_slice.py 97.15% <100.00%> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@blnicho blnicho merged commit 2cb3210 into Pyomo:main May 26, 2023
@jsiirola jsiirola deleted the slice-wildcard-api branch May 30, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexedComponent_slice wildcard methods argspec changes cause TypeError in 6.6.0

3 participants