Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
6 tasks done
lbianchi-lbl opened this issue Oct 10, 2022 · 6 comments
Closed
6 tasks done
Assignees
Labels
Priority:High High Priority Issue or PR

Comments

@lbianchi-lbl
Copy link
Contributor

lbianchi-lbl commented Oct 10, 2022

Notebooks

Python code

  • Remove explicit version check

Formerly part of this issue

@lbianchi-lbl lbianchi-lbl added the Priority:High High Priority Issue or PR label Oct 10, 2022
@dguittet dguittet changed the title Ensuring full compatibility between RE case study and upstream IDAES Ensuring full compatibility between Double loop notebooks and upstream IDAES Oct 26, 2022
@dguittet
Copy link
Contributor

Updated the title to reflect all double loop notebook

Added new items:

  1. Merge Grid integration: update bounds of AGC bid IDAES/idaes-pse#996. This is another IDAES PR that needs to be merged so that the NE and FE flowsheets can work.
  2. Merge Double loop Notebooks compatible w/ idaes 2.0 #155. The NE and FE flowsheets have been updated alongside the RE one and should now run without problems...

@dguittet
Copy link
Contributor

@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
Copy link
Contributor Author

@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
Copy link
Contributor

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

@lbianchi-lbl
Copy link
Contributor Author

@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:

  • Either through the JupyterLab (or "classic notebook") interface
  • Or by opening the .ipynb as a text/JSON file and that tag from the tags: [...] array (leaving the empty array should be fine)

@lbianchi-lbl
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:High High Priority Issue or PR
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants