Skip to content

Commit 63b3754

Browse files
authored
Remove uses of pkg_resources (#161)
* Remove use of pkg_resources from example notebooks * Tell spell checker to ignore 'iz' * Fix black formatting * Added to typos ignore list in the wrong spot so reverting that change and fixing it * Update dependency from importlib_resources to importlib * Fix imports from importlib * Fix typo * Add output of running the notebooks
1 parent 11cc0b2 commit 63b3754

9 files changed

+39345
-25318
lines changed

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_power_plant.ipynb

Lines changed: 6038 additions & 141 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_power_plant_doc.ipynb

Lines changed: 6029 additions & 14700 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_power_plant_test.ipynb

Lines changed: 5906 additions & 9 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_power_plant_usr.ipynb

Lines changed: 5906 additions & 9 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_steam_cycle.ipynb

Lines changed: 3966 additions & 206 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_steam_cycle_doc.ipynb

Lines changed: 3945 additions & 10220 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_steam_cycle_test.ipynb

Lines changed: 3775 additions & 15 deletions
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/power_gen/supercritical/supercritical_steam_cycle_usr.ipynb

Lines changed: 3775 additions & 15 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = [
4343
# Pyomo
4444
"pyomo>=6.5.0",
4545
"jupyter",
46-
"importlib_resources", # importlib.resources.files()
46+
"importlib",
4747
]
4848
keywords = ["IDAES", "energy systems", "chemical engineering", "process modeling"]
4949

@@ -156,12 +156,14 @@ extend-exclude = [
156156
[tool.typos.default.extend-words]
157157
# Ignore IDAES
158158
IDAES = "IDAES"
159-
# Ignore HDA, assumes it's on purpose and not a typo of "had"
159+
# Ignore HDA, assume it's on purpose and not a typo of "had"
160160
HDA = "HDA"
161161
# Ignore Attemp - assume it is abbreviating attemperator
162162
Attemp = "Attemp"
163-
# Ignore equil, assumes it's on purpose and not a typo of "equal"
163+
# Ignore equil, assume it's on purpose and not a typo of "equal"
164164
equil = "equil"
165+
# Ignore iz, assume it's on purpose and not a typo of "is"
166+
iz = "iz"
165167
# Atomic elements
166168
Nd = "Nd"
167169
Ba = "Ba" # ba is also used in block names in RSOFC-SOEC example

0 commit comments

Comments
 (0)