Closed qq23840 closed 2 months ago
fixed issues as highlighted by @brendan-m-murphy. Tests still failing but I think that's not an issue with these changes at all
fixed issues as highlighted by @brendan-m-murphy. Tests still failing but I think that's not an issue with these changes at all
The failing tests are due to some incompatible dependencies. I've fixed this on PR #87, so once that's merged into devel, merging devel into this branch should make the tests run. (But there aren't any tests related to the post_process module, so it doesn't really matter).
Great - I'll wait until that PR goes through, then merge into this branch
Sorted
C.F. Issue #36 about
hbmcmc_post_process.py
The functions within
hbmcmc_post_process.py
are, I think, still quite useful, especially for someone still learning inversions and trying to quickly compare outputs. I've just fixed a few bugs and updated the documentation so that these can be used on the hbmcmc output datasets currently generated bymain
(I'm aware these may change soon).Changes: -Changed how the
site_info.json
andspecies_info.json
data are called to remove dependency on ACRG paths -Fixed various functions so that they call the fluxmode variable rather than fluxmean (which doesn't exist) -Thorough update of documentation for all functions -Fixed bug inset_cmap
where a very sparse dataset (i.e. >98% NaN) would not generate a valid array of values for the colormap -General updates -Also added a line inbasis_functions.py
to deal with NaNs in flux data which otherwise derail the quadtree algorithm (although this should be addressed by changes to the edgar parser in openghg, and probably in the new basis functions setup as well) -Did NOT manage to tidy up thecalculate_DIC
function - I'm not quite sure how it works and I think a lot has changed since it was first writtenChecks: -Tests don't pass, but I think that's on my end? Can look into this if needed. I don't think any of the functionality I've changed/added are tested for, however -Ran black on
hbmcmc_post_process.py