Skip to content

Commit

Permalink
Update figures.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRosado committed Sep 28, 2023
1 parent bd4f711 commit a5f09c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LegPy/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,16 @@ def E_ab(self):
def to_excel(self, fname):
# excel file
fname = fname + '.xlsx'
#hist_writer = pd.ExcelWriter(fname, engine='xlsxwriter')
hist_writer = pd.ExcelWriter(fname, engine='xlsxwriter')
ang_out_df = self.ang_out()
E_out_df = self.E_out()
E_ab_df = self.E_ab()
ang_out_df.to_excel(hist_writer, sheet_name='Ang_Spect_out_Photons')
E_out_df.to_excel(hist_writer, sheet_name='En_Spect_out_Photons')
E_ab_df.to_excel(hist_writer, sheet_name='Spect_abs_Energy')
#hist_writer.save()
hist_writer.save()
print(fname + ' written onto disk')

class fluence:
# Fluence curve along z axis
# E hist of photons flowing through ds as a function of z
Expand Down

0 comments on commit a5f09c7

Please sign in to comment.