IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "make friendly example scripts for the release"

Closed Alan Coleman requested to merge 626-make-friendly-example-scripts-for-the-release into master
2 unresolved threads
Compare and
20 files
+ 221
10
Compare changes
  • Side-by-side
  • Inline
Files
20
@@ -12,7 +12,7 @@ import os.path as op
from typing import Any
import numpy as np
import xarray as xr
# import xarray as xr
from .output import Output
@@ -48,7 +48,7 @@ class RadioProcess(Output):
f"An error occured loading a RadioProcess: {e}"
)
def load_data(self, path: str) -> xr.Dataset:
def load_data(self, path: str) -> dict:
"""
Load the data associated with this radio process.
@@ -102,17 +102,17 @@ class RadioProcess(Output):
for iev in np.arange(nshowers):
waveforms[iev, ...] = data[str(iev)]
# create the data array
showers = xr.DataArray(
waveforms,
coords=(np.arange(nshowers), ["x", "y", "z"], times), # type: ignore
dims=["shower", "pol", "time"],
)
# # create the data array
# showers = xr.DataArray(
# waveforms,
# coords=(np.arange(nshowers), ["x", "y", "z"], times), # type: ignore
# dims=["shower", "pol", "time"],
# )
# save this data array
dataset[name] = showers
return xr.Dataset(dataset)
return dataset
def is_good(self) -> bool:
"""
Loading