Skip to content

Commit

Permalink
Changed openany to open.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Click <tcthepoet@yahoo.com>
  • Loading branch information
Timothy Click authored and Timothy Click committed Nov 4, 2017
1 parent dffdc5c commit f13c1d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fluctmatch/fluctmatch/charmmfluctmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,11 @@ def calculate_thermo(self, nma_exec=None):
thermo = thermo.astype(np.float)

# Write data to file
with util.openany(self.filenames["thermo_data"], "w") as data_file:
thermo.to_csv(
data_file,
with open(self.filenames["thermo_data"], "wb") as data_file:
thermo = thermo.to_csv(
index=True,
sep=native_str(" "),
float_format=native_str("%.4f"),
encoding="utf-8"
)
data_file.write(thermo.encode())

0 comments on commit f13c1d5

Please sign in to comment.