Skip to content
Snippets Groups Projects

feat [Jungfrau][Dark]: Update notebook to write and read ccvs without using calibrationDBRemote

Merged Karim Ahmed requested to merge feat/remove_calibrationDBRemote_usage into master
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
@@ -258,13 +258,16 @@ class SingleConstant:
_have_calcat_metadata=True,
)
def dataset_obj(self, caldb_root=None) -> h5py.Dataset:
def get_full_path(self, caldb_root=None):
if caldb_root is not None:
caldb_root = Path(caldb_root)
else:
caldb_root = _get_default_caldb_root()
return caldb_root / self.path
def dataset_obj(self, caldb_root=None) -> h5py.Dataset:
f = h5py.File(caldb_root / self.path, "r")
f = h5py.File(self.get_full_path(caldb_root), "r")
return f[self.dataset]["data"]
def ndarray(self, caldb_root=None):
Loading