Skip to content

Commit

Permalink
speed up reading
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 27, 2023
1 parent b4a3fb4 commit 10392dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def read_grid(eep_prefix, outp_prefix):
for i, f in enumerate(fs):
if i % (N // 100) == 0:
print('%d/%d' % (i, N))
curt = atpy.Table().read(f, format='ascii')
curt = atpy.Table().read(f, format='ascii.fast_no_header')
for i, k in enumerate(list(curt.columns)):
curt.rename_column(k, list(tab0.columns)[i])
D = getheader(f)
Expand Down Expand Up @@ -175,7 +175,6 @@ def writer(url, pref):
f'7z x {fname_out1}')
else:
cmd = f'cd {pref}; tar xfJ {fname_out}'
#ret = subprocess.run(cmd, capture_output=True, shell=True, timeout=60)
ret = subprocess.run(cmd, shell=True, timeout=60)
if ret.returncode != 0:
raise RuntimeError('Failed to untar the files' +
Expand Down

0 comments on commit 10392dc

Please sign in to comment.