Commit 4bf7ba61d69b7f96b969a400d723da835c9b714e
1 parent
43280165
Do not write file function file in Byte mode in csspec
Showing
1 changed file
with
1 additions
and
1 deletions
cscripts/csspec.py
| ... | ... | @@ -373,7 +373,7 @@ class csspec(ctools.csobservation): |
| 373 | 373 | energies = gammalib.GEnergies(num, self._ebounds.emin(0), |
| 374 | 374 | self._ebounds.emax(nbins-1)) |
| 375 | 375 | _, filename = tempfile.mkstemp() |
| 376 | - f = open(filename, 'wb') | |
| 376 | + f = open(filename, 'w') | |
| 377 | 377 | spectral = model.spectral() |
| 378 | 378 | for energy in energies: |
| 379 | 379 | value = spectral.eval(energy) | ... | ... |