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

Add error trap when aggregation.py fails #244

Open
msulprizio opened this issue Jul 10, 2024 · 1 comment
Open

Add error trap when aggregation.py fails #244

msulprizio opened this issue Jul 10, 2024 · 1 comment
Labels

Comments

@msulprizio
Copy link
Collaborator

Currently, when an error occurs in aggregation.py the statevector.sh script continues along without a warning or message (see example log output below). We should an error trap to let users know when the clustering of their state vector has not actually succeeded without relying on them to check that the number of state vector elements has actually changed.

=== CREATING RECTANGULAR STATE VECTOR FILE ===

Calling make_state_vector_file.py
Saving file StateVector.nc

=== DONE CREATING RECTANGULAR STATE VECTOR FILE ===

Number of state vector elements in this inversion = 4364


=== REDUCING DIMENSION OF STATE VECTOR FILE ===
Submitted batch job 39311898
Total prior emissions in region of interest = 507.8023265955999 Tg/y 


Found 230458.0 observations in the region of interest
k = [10.07223 10.07223 10.07223 ... 10.07223 10.07223 10.07223] kg-1 m2 s
a = [0. 0. 0. ... 0. 0. 0.] 

expectedDOFS: 23.78517
Traceback (most recent call last):
  File "/var/slurmd/spool/slurmd/job39311898/slurm_script", line 634, in <module>
    sensitivities = force_native_res_pixels(
  File "/var/slurmd/spool/slurmd/job39311898/slurm_script", line 232, in force_native_res_pixels
    f"No forced native pixels specified or in {config['PointSourceDatasets']} dataset."
KeyError: 'PointSourceDatasets'

Number of state vector elements in this inversion = 4364
Copy link

github-actions bot commented Jan 7, 2025

This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the issue from closing this issue.

@github-actions github-actions bot added the stale label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant