Skip to content
Snippets Groups Projects
Commit 999b34e5 authored by Christoph.Knote's avatar Christoph.Knote
Browse files

...

parent b4c6f8fb
Branches
Tags
No related merge requests found
...@@ -141,10 +141,10 @@ class InputFile17: ...@@ -141,10 +141,10 @@ class InputFile17:
f.write(' '.join('{0:e}'.format(x) for x in line) + '\n') f.write(' '.join('{0:e}'.format(x) for x in line) + '\n')
else: else:
def _data_fix(key): def _data_fix(key):
if isinstance(self._data[x], list): if isinstance(self._data[key], list):
return self._data[x][0] return self._data[key][0]
else: else:
return self._data[x] return self._data[key]
data_line = ' '.join( '{0:e}'.format( float(self.anc[x])) for x in self.anc.keys() ) + ' ' + ' '.join( '{0:e}'.format( float(_data_fix(x))) for x in self.keys() ) + '\n' data_line = ' '.join( '{0:e}'.format( float(self.anc[x])) for x in self.anc.keys() ) + ' ' + ' '.join( '{0:e}'.format( float(_data_fix(x))) for x in self.keys() ) + '\n'
if not self.time is None: if not self.time is None:
data_line = '{0:e}'.format(float(self.time)) + ' ' + data_line data_line = '{0:e}'.format(float(self.time)) + ' ' + data_line
...@@ -233,10 +233,10 @@ class InputFileOrig: ...@@ -233,10 +233,10 @@ class InputFileOrig:
else: else:
f.write('{0:s}' .format(' '.join( column_names)) +'\n') f.write('{0:s}' .format(' '.join( column_names)) +'\n')
def _data_fix(key): def _data_fix(key):
if isinstance(self._data[x], list): if isinstance(self._data[key], list):
return self._data[x][0] return self._data[key][0]
else: else:
return self._data[x] return self._data[key]
f.write(' '.join( '{0:e}'.format(float(_data_fix(x))) for x in self.keys() ) + '\n') f.write(' '.join( '{0:e}'.format(float(_data_fix(x))) for x in self.keys() ) + '\n')
def __init__(self, fpath=None): def __init__(self, fpath=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment