Skip to content

Commit 54252be

Browse files
committed
Update planetable.py
1 parent 27de0a9 commit 54252be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/czitools/utils/planetable.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,22 @@ def _getsbinfo(subblock: Any) -> Tuple[float, float, float, float]:
108108
try:
109109
time = subblock.findall(".//AcquisitionTime")[0].text
110110
timestamp = dt.parse(time).timestamp()
111-
except IndexError as e:
111+
except IndexError:
112112
timestamp = 0.0
113113

114114
try:
115115
xpos = np.double(subblock.findall(".//StageXPosition")[0].text)
116-
except IndexError as e:
116+
except IndexError:
117117
xpos = 0.0
118118

119119
try:
120120
ypos = np.double(subblock.findall(".//StageYPosition")[0].text)
121-
except IndexError as e:
121+
except IndexError:
122122
ypos = 0.0
123123

124124
try:
125125
zpos = np.double(subblock.findall(".//FocusPosition")[0].text)
126-
except IndexError as e:
126+
except IndexError:
127127
zpos = 0.0
128128

129129
return timestamp, xpos, ypos, zpos

0 commit comments

Comments
 (0)