Skip to content

Commit

Permalink
✨Add damped_oscillation_associated_spectra missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnel committed Jun 8, 2024
1 parent 0396d1a commit e4cb00e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyglotaran_extras/compat/convert_result_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def _adjust_estimations_to_spectra(ds: xr.Dataset, *, cleanup: bool = False) ->
ds["species_associated_spectra"] = ds["species_associated_estimation"]
if cleanup:
ds = ds.drop_vars("species_associated_estimation")
if "damped_oscillation_associated_estimation" in ds:
ds["damped_oscillation_associated_spectra"] = ds["damped_oscillation_associated_estimation"]
if cleanup:
ds = ds.drop_vars("damped_oscillation_associated_estimation")


def _adjust_activation_to_irf(ds: xr.Dataset, *, cleanup: bool = False) -> None:
Expand Down

0 comments on commit e4cb00e

Please sign in to comment.