Skip to content

Adding SimpleBlock to pyomo.core namespace#941

Merged
michaelbynum merged 1 commit intomasterfrom
simpleblock
Apr 17, 2019
Merged

Adding SimpleBlock to pyomo.core namespace#941
michaelbynum merged 1 commit intomasterfrom
simpleblock

Conversation

@whart222
Copy link
Copy Markdown
Member

Fixes NA.

Summary/Motivation:

. Add SimpleBlock to the pyomo.core namespace

Changes proposed in this PR:

  • We expose SimpleVar and related objects to simplify the
    API for pyomo.core users. This change adds SimpleBlock to be
    consistent.
  • This allows Pyomo extension packages to import SimpleBlock from pyomo.core, instead of from a module in pyomo.core. This enhances the stability of Pyomo extension packages, since Pyomo can change its internal organization without impacting extension packages that pull symbols from pyomo.core.

Legal Acknowledgement

By contributing to this software project, I 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.

We expose SimpleVar and related objects to simplify the
API for pyomo.core users. This change adds SimpleBlock to be
consistent.
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #941 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #941   +/-   ##
=======================================
  Coverage   73.46%   73.46%           
=======================================
  Files         469      469           
  Lines       71514    71514           
=======================================
  Hits        52541    52541           
  Misses      18973    18973
Impacted Files Coverage Δ
pyomo/core/base/block.py 83.88% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2930f52...e130244. Read the comment docs.

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.

3 participants