Skip to content

Commit

Permalink
modified: pipelines/idr2_preprocessing/preprocess_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed Jun 18, 2018
1 parent 5f0e838 commit 9bffd8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/idr2_preprocessing/preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def full_tavg(j, pol=pol, lens=lens, angs=angs, reds=reds, dfs=dfs, p=cf['algori
F.write_data(tavg_file, write_avg=True, overwrite=overwrite)
except:
err, _, tb = sys.exc_info()
hp.utils.log("\n{} threw {} Exception with traceback:".format(i, err), f=ef, tb=tb, verbose=verbose)
hp.utils.log("\n{} threw {} Exception with traceback:".format(j, err), f=ef, tb=tb, verbose=verbose)
return 1

return 0
Expand Down Expand Up @@ -382,7 +382,7 @@ def reformat_files(j, pol=pol, tavg_files=tavg_files, times=times, p=cf['algorit
uvd = UVData()
uvd.read_miriad(tavg_files, time_range=[times[j].min()-1e-8, times[j].max()+1e-8])
lst = uvd.lst_array[0]
outfile = os.path.join(out_dir, "zen.{group}.{pol}.LST.{LST:.5f}.{suffix}".format(group=groupname, pol=pol, LST=lst, suffix=data_suffix + data_suffix))
outfile = os.path.join(out_dir, "zen.{group}.{pol}.LST.{LST:.5f}.{suffix}".format(group=groupname, pol=pol, LST=lst, suffix=data_suffix + p['file_ext']))
uvd.write_miriad(outfile, clobber=overwrite)
except:
err, _, tb = sys.exc_info()
Expand Down

0 comments on commit 9bffd8f

Please sign in to comment.