Skip to content

Commit b87f74f

Browse files
HSP2_Driver.py -- argument change for new improved readWDM
readWDM.py -- commented out a few instances of njit to be compatible with other versions of numba
1 parent 71a88bb commit b87f74f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

HSP2_Driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
if file_ext.upper() == "WDM":
3838
h5_name = filename[:-3] + "h5"
3939
from HSP2tools.readWDM import readWDM
40-
readWDM(filename, h5_name, jupyterlab=False)
40+
readWDM(filename, h5_name)
4141
# readWDM('GRICM.wdm', 'test.h5')
4242
# readWDM('ZUMBROSCEN.WDM', 'test.h5')
4343

HSP2tools/readWDM.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _splitcontrol(x):
184184
def _splitposition(x):
185185
return((x>>9) - 1, (x&0x1FF) - 1) #args: record, offset
186186

187-
@njit
187+
# @njit
188188
def _inttostr(i):
189189
return chr(i & 0xFF) + chr(i>>8 & 0xFF) + chr(i>>16 & 0xFF) + chr(i>>24 & 0xFF)
190190

@@ -259,7 +259,7 @@ def _is_leapyear(year):
259259
else:
260260
return False
261261

262-
@njit
262+
# @njit
263263
def _date_convert(dates, date_epoch, dt_year, dt_month, dt_day, dt_hour, dt_minute, dt_second):
264264
converted_dates = []
265265
for x in dates:

0 commit comments

Comments
 (0)