Summary:
Encountered a ZeroDivisionError when attempting to execute the command: ai-models --input cds --date 20230110 --time 0000 --lead-time 0 fourcastnetv2-small.
Detailed Description:
Upon executing the aforementioned command, the following traceback was observed:
Traceback (most recent call last):
File "/h/username/miniconda3/envs/AI_weather/bin/ai-models", line 8, in
sys.exit(main())
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/main.py", line 305, in main
_main()
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/main.py", line 278, in _main
model.run()
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models_fourcastnetv2/model.py", line 209, in run
with self.stepper(self.hour_steps) as stepper:
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/stepper.py", line 46, in exit
LOG.info("Average: %s per step.", seconds(elapsed / self.num_steps))
ZeroDivisionError: float division by zero
Expected Behavior:
The command should execute without encountering a ZeroDivisionError, even with a lead-time of 0.
Steps to Reproduce:
Execute the command ai-models --input cds --date 20230110 --time 0000 --lead-time 0 fourcastnetv2-small.
Observe the traceback provided above.
Summary: Encountered a ZeroDivisionError when attempting to execute the command: ai-models --input cds --date 20230110 --time 0000 --lead-time 0 fourcastnetv2-small.
Detailed Description: Upon executing the aforementioned command, the following traceback was observed:
Traceback (most recent call last): File "/h/username/miniconda3/envs/AI_weather/bin/ai-models", line 8, in
sys.exit(main())
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/main.py", line 305, in main
_main()
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/main.py", line 278, in _main
model.run()
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models_fourcastnetv2/model.py", line 209, in run
with self.stepper(self.hour_steps) as stepper:
File "/h/username/miniconda3/envs/AI_weather/lib/python3.10/site-packages/ai_models/stepper.py", line 46, in exit
LOG.info("Average: %s per step.", seconds(elapsed / self.num_steps))
ZeroDivisionError: float division by zero
Expected Behavior: The command should execute without encountering a ZeroDivisionError, even with a lead-time of 0.
Steps to Reproduce:
Execute the command ai-models --input cds --date 20230110 --time 0000 --lead-time 0 fourcastnetv2-small. Observe the traceback provided above.