Skip to content

Fix data_process scripts: import, progressbar init and bounds#75

Open
thomasarmstrong98 wants to merge 1 commit intoNVIDIA:mainfrom
thomasarmstrong98:fix/data-process-bugs
Open

Fix data_process scripts: import, progressbar init and bounds#75
thomasarmstrong98 wants to merge 1 commit intoNVIDIA:mainfrom
thomasarmstrong98:fix/data-process-bugs

Conversation

@thomasarmstrong98
Copy link
Copy Markdown

  • Use absolute import for wb2_helpers in convert_wb2_to_makani_input.py since the documented invocation is direct script execution (python script.py), not module execution (python -m), which breaks relative imports.

  • Call progressbar.start() before update() as required by progressbar2 API.

  • Clamp progress count to maxval to prevent ValueError in distributed settings where aggregated count can momentarily exceed the total.

- Use absolute import for wb2_helpers in convert_wb2_to_makani_input.py
  since the documented invocation is direct script execution (python script.py),
  not module execution (python -m), which breaks relative imports.

- Call progressbar.start() before update() as required by progressbar2 API.

- Clamp progress count to maxval to prevent ValueError in distributed
  settings where aggregated count can momentarily exceed the total.
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.

1 participant