File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/geophires_monte_carlo Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -73,21 +73,15 @@ def __init__(self, request: MonteCarloRequest):
73
73
74
74
with open (self ._request .input_file ) as request_input_file , open (
75
75
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 :
77
77
self ._result : dict = {
78
78
'input' : {
79
79
'input_file_content' : request_input_file .read (),
80
80
'monte_carlo_settings_file_content' : mc_settings_file .read (),
81
81
},
82
- # 'output': json.loads(json_file.read()),
82
+ 'output' : json .loads (json_file .read ()),
83
83
}
84
84
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
-
91
85
@property
92
86
def output_file_path (self ) -> Path :
93
87
return self ._request .output_file
You can’t perform that action at this time.
0 commit comments