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

Balmorel.load_incfiles should check if the outputted .gdx has already been generated #12

Closed
Mathias157 opened this issue Sep 22, 2024 · 0 comments · Fixed by #17
Closed

Comments

@Mathias157
Copy link
Collaborator

Mathias157 commented Sep 22, 2024

When Balmorel.load_incfiles('scenario') is run, a file, typically named '_gams_py_gdb0.gdx', will be output to the scenario/model folder that actually contains everything. The function should check if this file has already been generated before running to avoid the long loading time.

  • Check for .gdx before running
  • Find out how to name this outputted .gdx better (generic job name? give it the scenarion name instead?)
  • Load the file if it exists instead of running the _ReadData files
Mathias157 added a commit that referenced this issue Sep 24, 2024
…io_input_data.gdx instead of generic _gams_py_gdb0.gdx
@Mathias157 Mathias157 linked a pull request Sep 25, 2024 that will close this issue
Mathias157 added a commit that referenced this issue Sep 25, 2024
* Started work on issue #12 by renaming the output .gdx file to %scenario_input_data.gdx instead of generic _gams_py_gdb0.gdx

* Finished check for file before loading inc files

* Release 0.3.10

* Merge branch 'master' into check_for_loaded_incfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant