Skip to content

Commit 1294d05

Browse files
Roll back WIP temporary workaround
1 parent c7b6f8b commit 1294d05

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/geophires_monte_carlo/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,15 @@ def __init__(self, request: MonteCarloRequest):
7373

7474
with open(self._request.input_file) as request_input_file, open(
7575
self._request.monte_carlo_settings_file
76-
) as mc_settings_file:
76+
) as mc_settings_file, open(self.json_output_file_path) as json_file:
7777
self._result: dict = {
7878
'input': {
7979
'input_file_content': request_input_file.read(),
8080
'monte_carlo_settings_file_content': mc_settings_file.read(),
8181
},
82-
# 'output': json.loads(json_file.read()),
82+
'output': json.loads(json_file.read()),
8383
}
8484

85-
try:
86-
with open(self.json_output_file_path) as json_file:
87-
self._result['output'] = json.loads(json_file.read())
88-
except FileNotFoundError:
89-
pass # FIXME WIP
90-
9185
@property
9286
def output_file_path(self) -> Path:
9387
return self._request.output_file

0 commit comments

Comments
 (0)