gmlc-dispatches / dispatches

Primary repository for distributed dispatches software tools
https://dispatches.readthedocs.io/
Other
12 stars 34 forks source link

Ensuring full compatibility between Double loop notebooks and upstream IDAES #154

Closed lbianchi-lbl closed 1 year ago

lbianchi-lbl commented 1 year ago

Notebooks

Python code

Formerly part of this issue

dguittet commented 1 year ago

Updated the title to reflect all double loop notebook

Added new items:

  1. Merge https://github.com/IDAES/idaes-pse/pull/996. This is another IDAES PR that needs to be merged so that the NE and FE flowsheets can work.
  2. Merge #155. The NE and FE flowsheets have been updated alongside the RE one and should now run without problems...
dguittet commented 1 year ago

@lbianchi-lbl How should I modify the checks.yml so that we can run the RE double loop notebook with the new CI env var?

lbianchi-lbl commented 1 year ago

@lbianchi-lbl How should I modify the checks.yml so that we can run the RE double loop notebook with the new CI env var?

@dguittet In the .github/workflows/notebooks-checks.yml file, it should be enough to add this at the root level of the YAML tree (i.e. env should not be indented), e.g. between the defaults and jobs top-level keys at line 11:

on:
  workflow_dispatch:

defaults:
  run:
    # important to make sure that all commands on Windows are run using Bash
    # -l: login shell, needed when using Conda
    shell: bash -l {0}

env:
  DISPATCHES_TESTING_MODE: "true"

jobs:
  # ... rest of the code
dguittet commented 1 year ago

@lbianchi-lbl Thanks. And the notebook is already enabled?

lbianchi-lbl commented 1 year ago

@dguittet good point. The last several cells of DoubleLoopOptimization.ipynb have a nbval-skip tag that needs to be removed from each cell in order for that cell to be run.

That can be done:

lbianchi-lbl commented 1 year ago

Since it's not really connected to the IDAES v2 transition, I've created #159 to track the changes needed to be able to remove the nbval-skip tags for the DL notebooks, and closing this as the remaining items have been completed.