Skip to content
Snippets Groups Projects
Commit 952abb3b authored by Stephan Kuschel's avatar Stephan Kuschel
Browse files

Fix E722

parent 865f7dae
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ class Hdf5reader(Dumpreader_ifc): ...@@ -88,7 +88,7 @@ class Hdf5reader(Dumpreader_ifc):
axis = helper.axesidentify[axis] axis = helper.axesidentify[axis]
try: try:
return np.float64(self["ElecMultiField"][..., axis]) return np.float64(self["ElecMultiField"][..., axis])
except: except(KeyError):
return None return None
def dataB(self, axis, **kwargs): def dataB(self, axis, **kwargs):
...@@ -96,7 +96,7 @@ class Hdf5reader(Dumpreader_ifc): ...@@ -96,7 +96,7 @@ class Hdf5reader(Dumpreader_ifc):
axis = helper.axesidentify[axis] axis = helper.axesidentify[axis]
try: try:
return np.float64(self["MagMultiField"][..., axis]) return np.float64(self["MagMultiField"][..., axis])
except: except(KeyError):
return None return None
def grid(self, axis): def grid(self, axis):
...@@ -181,19 +181,3 @@ class VSimReader(Simulationreader_ifc): ...@@ -181,19 +181,3 @@ class VSimReader(Simulationreader_ifc):
def __str__(self): def __str__(self):
return '<VSimReader at "' + str(self.path) + '">' return '<VSimReader at "' + str(self.path) + '">'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment