From 55845199877a42af36ba337ac8846ccf73fa7fc7 Mon Sep 17 00:00:00 2001 From: Christoph Knote <christoph.knote@med.uni-augsburg.de> Date: Fri, 18 Feb 2022 16:30:02 +0100 Subject: [PATCH] Rename license file, format .py --- LICENSE.txt => LICENSE | 0 docs/source/index.rst | 5 +++++ src/icartt/dataset.py | 6 ++---- 3 files changed, 7 insertions(+), 4 deletions(-) rename LICENSE.txt => LICENSE (100%) diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/docs/source/index.rst b/docs/source/index.rst index 27fead2..4501b1c 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -47,6 +47,11 @@ Formats .. autoenum:: Formats +Variable types +******** + +.. autoenum:: VariableType + Indices and tables ################### diff --git a/src/icartt/dataset.py b/src/icartt/dataset.py index 88d63fb..166706f 100644 --- a/src/icartt/dataset.py +++ b/src/icartt/dataset.py @@ -113,7 +113,7 @@ class DataStore2110(collections.UserDict): self.auxvars = auxvars self.ibvar = ibvar self.dvars = dvars - + def __getitem__(self, s=slice(None)): return self.data[s] @@ -148,9 +148,7 @@ class DataStore2110(collections.UserDict): # stupid, but at first auxline added, nprimaryData ist a 0-dim array... ndepData = self.data[ivarvalue]["AUX"][self.nauxvarname] - ndepData = ( - int(ndepData) if ndepData.shape == () else int(ndepData[-1]) - ) + ndepData = int(ndepData) if ndepData.shape == () else int(ndepData[-1]) self._addDeplines(ivarvalue, raw[cur : (cur + ndepData)], ndepData) -- GitLab