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

Modern diag_manager :: new_file_freq, start_time, and file_duration keys #1594

Open
uramirez8707 opened this issue Oct 2, 2024 · 0 comments

Comments

@uramirez8707
Copy link
Contributor

Describe the bug
The following test cases are not working correctly:

title: test_diag_manager_01
base_date: 2 1 1 0 0 0
diag_files:
- file_name: test_multi_file%4yr%2mo%2dy%2hr
  time_units: days
  unlimdim: time
  freq: 1 hours
  new_file_freq: 6 hours
  module: atmos
  reduction: average
  kind: r4
  varlist:
  - var_name: ua

Here I expected a new file to be created every six hours (i.e test_multi_file_0002_01_01_06.nc, test_multi_file_0002_01_01_12.nc, etc), but instead I just get one file.

title: test_diag_manager_01
base_date: 2 1 1 0 0 0
diag_files:
- file_name: test_multi_file
  time_units: days
  unlimdim: time
  freq: 2 hours
  start_time: 2 1 1 12 0 0
  file_duration: 8 hours
  module: atmos
  reduction: average
  kind: r4
  varlist:
  - var_name: ua

Here I expected the file, test_multi_file.nc, to start writing output at 2 1 1 12 0 0 for 8 hours, but instead it starts at the beginning of the simulation and continues til the end.

To Reproduce
Run the unit tests with the example diag_table.yamls above

Expected behavior
Those test cases should be working as advertised

System Environment
This happens in any system

Additional context
N/A

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

No branches or pull requests

1 participant