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

[Bug]: error with --no-viewer argument in rc3.0.0.rc3 #942

Closed
chengzhuzhang opened this issue Feb 17, 2025 · 0 comments · Fixed by #943
Closed

[Bug]: error with --no-viewer argument in rc3.0.0.rc3 #942

chengzhuzhang opened this issue Feb 17, 2025 · 0 comments · Fixed by #943
Labels
bug Bug fix (will increment patch version)

Comments

@chengzhuzhang
Copy link
Contributor

What happened?

When running e3sm_diags command line, I got nboundLocalError: cannot access local variable 'prov_paths' where it is not associated with a value, which i think is introduced new in rc3.0.0.rc3. It was tested okay in rc2.

What did you expect to happen? Are there are possible answers you came across?

No response

Minimal Complete Verifiable Example (MVCE)

e3sm_diags polar --no_viewer --reference_data_path '/lcrc/group/e3sm/diagnostics/observations/Atm/climatology/' --test_data_path '/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v2_output/test_pr651_both_commits_20250117/v2.LR.historical_0201/post/atm/180x360_aave/clim/2yr' --results_dir '/lcrc/group/e3sm/public_html/zhang40/cdat-migration-fy24/25-02-11-branch-930-zppy-diffs-regrid-contour-conservative_norm_test' --case_id 'GPCP_v3.2' --run_type 'model_vs_obs' --sets 'polar' --variables 'PRECT' --seasons 'ANN' --regions 'polar_S' --regrid_tool 'esmf' --regrid_method 'conservative_normed' --multiprocessing --num_workers '8' --main_title 'PRECT ANN polar_S' --backend 'cartopy' --save_netcdf --output_format 'png' --canvas_size_w '1212' --canvas_size_h '1628' --figsize '8.5' '11.0' --dpi '150' --arrows  --test_name 'v2.LR.historical_0201' --short_test_name 'v2.LR.historical_0201' --test_colormap 'WhiteBlueGreenYellowRed.rgb' --ref_name 'GPCP_v3.2' --reference_name 'GPCP v3.2' --reference_colormap 'WhiteBlueGreenYellowRed.rgb' --diff_title 'Model - Observations' --diff_colormap 'BrBG' --diff_levels '-2' '-1.5' '-1' '-0.75' '-0.5' '-0.25' '0.25' '0.5' '0.75' '1' '1.5' '2' --granulate 'variables' 'seasons' 'plevs' 'regions' --selectors 'sets' 'seasons'

Relevant log output

Traceback (most recent call last):
  File "/home/ac.zhang40/y/envs/e3sm_diags_dev/bin/e3sm_diags", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ac.zhang40/y/envs/e3sm_diags_dev/lib/python3.12/site-packages/e3sm_diags/e3sm_diags_driver.py", line 415, in main
    _log_diagnostic_run_info(prov_paths)
                             ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'prov_paths' where it is not associated with a value

Anything else we need to know?

No response

Environment

3.0.0.rc3

@chengzhuzhang chengzhuzhang added the bug Bug fix (will increment patch version) label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix (will increment patch version)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant