Skip to content

fix(cli): correct plot_graph default config path and flag name - #761

Closed
nikhil3495 wants to merge 2 commits into
mllam:mainfrom
nikhil3495:fix/plot-graph-cli-config-path
Closed

nikhil3495 wants to merge 2 commits into
mllam:mainfrom
nikhil3495:fix/plot-graph-cli-config-path

Conversation

@nikhil3495

@nikhil3495 nikhil3495 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #760

Fix python -m neural_lam.plot_graph failing with default arguments.

  • The default config path did not exist. It now points at tests/datastore_examples/mdp/danra_100m_winds/config.yaml.
  • --datastore_config_path was documented as a datastore config, but load_config_and_datastore requires the neural-lam config. The flag is renamed to --config_path (matching create_graph and train_model) with corrected help text. --datastore_config_path remains as a deprecated alias that emits a DeprecationWarning.
  • main() accepts input_args so the CLI can be tested without patching sys.argv.

Tests: new tests in tests/test_plot_graph.py cover the default path existing, --config_path, the deprecated alias, a missing-file error, and --help. pre-commit and pytest tests/test_plot_graph.py pass. The success path with the real DANRA config was not run end to end, since it needs the S3 test data and a generated graph.

nikhil3495 and others added 2 commits October 3, 2026 17:46
The plot_graph CLI default config path did not exist and the --datastore_config_path flag was documented as a datastore config, while load_config_and_datastore requires the neural-lam config. Rename the flag to --config_path, point the default at the DANRA example config, keep the old flag as a deprecated alias, and let main() accept input_args so it can be tested.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Nikhil Bansiwal <nikhilbansiwal3495@gmail.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Nikhil Bansiwal <nikhilbansiwal3495@gmail.com>
@sadamov

sadamov commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

the community is moving towards #83 and we decided not to invest more time into the plot_graph. closing this to save your time :)

@sadamov sadamov closed this Oct 5, 2026
@nikhil3495

Copy link
Copy Markdown
Contributor Author

Thanks for letting me know, that makes sense. I'll look at #83 to see where I can help instead.

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 this pull request may close these issues.

plot_graph CLI fails with default arguments

2 participants