Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Python climatology calculation not retaining attributes #922

Closed
xylar opened this issue Oct 13, 2022 · 0 comments · Fixed by #930
Closed

Python climatology calculation not retaining attributes #922

xylar opened this issue Oct 13, 2022 · 0 comments · Fixed by #930
Assignees
Labels

Comments

@xylar
Copy link
Collaborator

xylar commented Oct 13, 2022

In the new #917 analysis, we're seeing:

Traceback (most recent call last):
  File "/gpfs/fs1/home/ac.xylar/chrysalis/mambaforge/envs/test_mpas_analysis_py3.9/lib/python3.9/site-packages/mpas_analysis/shared/analysis_task.py", line 322, in run
    self.run_task()
  File "/gpfs/fs1/home/ac.xylar/chrysalis/mambaforge/envs/test_mpas_analysis_py3.9/lib/python3.9/site-packages/mpas_analysis/ocean/histogram.py", line 539, in run_task
    xLabel = f"{ds[var_name].attrs['long_name']} " \
KeyError: 'long_name'

when we're not using ncclimo.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant