Skip to content

Commit

Permalink
Fix held tutorials by updating IDAES imports (#40)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
luohezhiming and lbianchi-lbl authored Jun 2, 2023
1 parent 5843259 commit 1ba1370
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 2,128 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ idaes_examples/notebooks/**/pysmo/*.pickle
idaes_examples/notebooks/**/omlt/keras_surrogate/*.pb
idaes_examples/notebooks/**/omlt/keras_surrogate/*.pdf
idaes_examples/notebooks/**/omlt/*.pdf
**/alamo/alamo_run.alm
alamo_run.alm
idaes_examples/notebooks/docs/tut/sin_data.csv
*.pb
*_info.json
variables.*
Expand Down
4 changes: 2 additions & 2 deletions idaes_examples/mod/notebook_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
idaes_import_check = True
try:
from idaes.core import *
from idaes.generic_models.unit_models import (PressureChanger,
from idaes.models.unit_models import (PressureChanger,
CSTR,
Flash,
Heater,
Mixer,
Separator)
from idaes.generic_models.unit_models.pressure_changer import ThermodynamicAssumption
from idaes.models.unit_models.pressure_changer import ThermodynamicAssumption

from idaes.core.util.model_statistics import degrees_of_freedom
except Exception as err:
Expand Down
9 changes: 4 additions & 5 deletions idaes_examples/notebooks/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ format: jb-book
parts:
- caption: Tutorials
chapters:
- file: docs/tut/index
sections:
- file: docs/tut/introduction_short_doc
- file: docs/tut/introduction_doc
- file: docs/tut/core/index
sections:
- file: docs/tut/core/flash_unit_doc
- file: docs/tut/core/hda_flowsheet_doc
# Moved to 'held' until their imports can be fixed
# - file: docs/tut/general/index
# sections:
# - file: docs/tut/introduction_short_doc
# - file: docs/tut/introduction_doc
- file: docs/tut/ui/index
sections:
- file: docs/tut/ui/visualizer_tutorial_doc
Expand Down
1 change: 1 addition & 0 deletions idaes_examples/notebooks/docs/tut/introduction_doc.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions idaes_examples/notebooks/docs/tut/introduction_src.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions idaes_examples/notebooks/docs/tut/introduction_test.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions idaes_examples/notebooks/docs/tut/introduction_usr.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 1ba1370

Please sign in to comment.