Skip to content

Commit

Permalink
matching the way lo_en and hi_en were referenced elsewhere in xga
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Pilling committed Aug 15, 2023
1 parent 603122e commit 95e3f2b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions xga/generate/esass/phot.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def evtool_image(sources: Union[BaseSource, NullSource, BaseSample], lo_en: Quan
(hi_en < Quantity(200, 'eV') or hi_en > Quantity(10000, 'eV')):
raise ValueError("The lo_en and hi_en value must be between 0.2 keV and 10 keV.")

# Converting the parameters to the correct format for the esass command
lo_en = lo_en.value
hi_en = hi_en.value

# These lists are to contain the lists of commands/paths/etc for each of the individual sources passed
# to this function
sources_cmds = []
Expand Down Expand Up @@ -94,8 +90,8 @@ def evtool_image(sources: Union[BaseSource, NullSource, BaseSample], lo_en: Quan

os.makedirs(dest_dir)
cmds.append("cd {d}; evtool eventfiles={e} outfile={i} image=yes "
"emin={lo} emax={hi}; mv * ../; cd ..; rm -r {d}".format(d=dest_dir, e=evt_list.path,
i=im, lo=lo_en, hi=hi_en ))
"emin={l} emax={u}; mv * ../; cd ..; rm -r {d}".format(d=dest_dir, e=evt_list.path,
i=im, l=lo_en.value, u=hi_en.value ))

# This is the products final resting place, if it exists at the end of this command
# ASSUMPTION4 new output directory structure
Expand Down

0 comments on commit 95e3f2b

Please sign in to comment.