Skip to content

Commit e3d49a0

Browse files
GeophiresInputParameters.as_text utility method
1 parent 2be95f9 commit e3d49a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/geophires_x_client/geophires_input_parameters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def as_file_path(self):
6969
def get_output_file_path(self):
7070
return Path(tempfile.gettempdir(), f'geophires-result_{self._id}.out')
7171

72+
def as_text(self):
73+
with open(self.as_file_path(), encoding='UTF-8') as f:
74+
return f.read()
75+
7276
def __hash__(self):
7377
"""TODO make hashes for equivalent parameters equal"""
7478
return self._id

0 commit comments

Comments
 (0)