Skip to content

Add models file input option#508

Merged
ElliottKasoar merged 12 commits intoddmms:mainfrom
ElliottKasoar:add-model-files
Apr 30, 2026
Merged

Add models file input option#508
ElliottKasoar merged 12 commits intoddmms:mainfrom
ElliottKasoar:add-model-files

Conversation

@ElliottKasoar
Copy link
Copy Markdown
Collaborator

Pre-review checklist for PR author

PR author must check the checkboxes below when creating the PR.

Summary

Allow models YAML file to be specified for all CLI commands (ml_peg calc/analyse/app/list).

I'd originally thought this may be an option parsed instead of the list of models, but I think a separate input makes sense, since then it's also filterable.

This also moves the 'global' inputs to the models init file, which means they can be accessed without the relatively heavy imports in models.py, which otherwise slow down the CLI noticeably.

Linked issue

Resolves #496

Testing

Tested locally for most commands, but could use fairly careful additional testing since it touches a lot.

@ElliottKasoar ElliottKasoar changed the title Add model files Add models file input option Apr 28, 2026
@ElliottKasoar ElliottKasoar added the enhancement New feature or request label Apr 28, 2026
@joehart2001
Copy link
Copy Markdown
Collaborator

think you've missed: physicality/oxidation_states/ so i get an error on app launch

@ElliottKasoar
Copy link
Copy Markdown
Collaborator Author

Good catch, thanks! This predated the merge of PR. Should be fixed now.

@ElliottKasoar ElliottKasoar merged commit 914a0ad into ddmms:main Apr 30, 2026
7 checks passed
@ElliottKasoar ElliottKasoar deleted the add-model-files branch April 30, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support file path for models in CLI

2 participants