Skip to content

Commit b8c3224

Browse files
committed
Avoid unnessary conversion to float
1 parent 66f85a3 commit b8c3224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/plexon2rawio/plexon2rawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _parse_header(self):
213213
tmo = anno_value
214214
# invalid datetime information if year is <1
215215
if tmo.tm_year != 0:
216-
microseconds = block_info['m_CreatorDateTimeMilliseconds'] * 1e3
216+
microseconds = block_info['m_CreatorDateTimeMilliseconds'] * 1000
217217
dt = datetime(year=tmo.tm_year, month=tmo.tm_mon, day=tmo.tm_mday, hour=tmo.tm_hour,
218218
minute=tmo.tm_min, second=tmo.tm_sec, microsecond=microseconds)
219219
# ignoring daylight saving time information for now as timezone is unknown

0 commit comments

Comments
 (0)