Skip to content

Commit 1ba1370

Browse files
Fix held tutorials by updating IDAES imports (#40)
* revise import errors * move files to doc folder * Add ipynb artifacts for tutorials * Change tutorials position in TOC to address FileNotFound error See #50 * Set missing generated data files to be ignored * Try using a Markdown header to obtain a clearer sidebar entry * Try removing ref to logo * Add updated ipynb artifacts --------- Co-authored-by: Ludovico Bianchi <[email protected]>
1 parent 5843259 commit 1ba1370

19 files changed

+20
-2128
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ idaes_examples/notebooks/**/pysmo/*.pickle
143143
idaes_examples/notebooks/**/omlt/keras_surrogate/*.pb
144144
idaes_examples/notebooks/**/omlt/keras_surrogate/*.pdf
145145
idaes_examples/notebooks/**/omlt/*.pdf
146-
**/alamo/alamo_run.alm
146+
alamo_run.alm
147+
idaes_examples/notebooks/docs/tut/sin_data.csv
147148
*.pb
148149
*_info.json
149150
variables.*

idaes_examples/mod/notebook_checks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
idaes_import_check = True
2626
try:
2727
from idaes.core import *
28-
from idaes.generic_models.unit_models import (PressureChanger,
28+
from idaes.models.unit_models import (PressureChanger,
2929
CSTR,
3030
Flash,
3131
Heater,
3232
Mixer,
3333
Separator)
34-
from idaes.generic_models.unit_models.pressure_changer import ThermodynamicAssumption
34+
from idaes.models.unit_models.pressure_changer import ThermodynamicAssumption
3535

3636
from idaes.core.util.model_statistics import degrees_of_freedom
3737
except Exception as err:

idaes_examples/notebooks/_toc.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ format: jb-book
22
parts:
33
- caption: Tutorials
44
chapters:
5+
- file: docs/tut/index
6+
sections:
7+
- file: docs/tut/introduction_short_doc
8+
- file: docs/tut/introduction_doc
59
- file: docs/tut/core/index
610
sections:
711
- file: docs/tut/core/flash_unit_doc
812
- file: docs/tut/core/hda_flowsheet_doc
9-
# Moved to 'held' until their imports can be fixed
10-
# - file: docs/tut/general/index
11-
# sections:
12-
# - file: docs/tut/introduction_short_doc
13-
# - file: docs/tut/introduction_doc
1413
- file: docs/tut/ui/index
1514
sections:
1615
- file: docs/tut/ui/visualizer_tutorial_doc

idaes_examples/notebooks/docs/tut/introduction_doc.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_exercise.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_doc.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_exercise.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_solution.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_src.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_test.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_short_usr.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_solution.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_src.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_test.ipynb

+1
Large diffs are not rendered by default.

idaes_examples/notebooks/docs/tut/introduction_usr.ipynb

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)