Skip to content

Commit 78ddb02

Browse files
Specify HTML Output File in example12_DH.txt; don't use default output path if None
1 parent 1227b93 commit 78ddb02

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/geophires_x/Outputs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def read_parameters(self, model: Model, default_output_path: Path = None) -> Non
713713
ParameterReadIn = model.InputParameters[key]
714714

715715
if key in self.filepath_parameter_names:
716-
if not Path(ParameterReadIn.sValue).is_absolute():
716+
if not Path(ParameterReadIn.sValue).is_absolute() and default_output_path is not None:
717717
original_val = ParameterReadIn.sValue
718718
ParameterReadIn.sValue = str(
719719
default_output_path.joinpath(ParameterReadIn.sValue).absolute())
@@ -742,8 +742,6 @@ def read_parameters(self, model: Model, default_output_path: Path = None) -> Non
742742
if key.startswith('Units:'):
743743
self.ParameterDict[key.replace('Units:', '')] = LookupUnits(model.InputParameters[key].sValue)[0]
744744

745-
# handle special cases
746-
747745
model.logger.info(f'Complete {__class__!s}: {__name__}')
748746

749747
def PrintOutputs(self, model: Model):

tests/examples/example12_DH.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ Fracture Height, 300
6060
Fracture Width, 200
6161
Fracture Shape, 4
6262
Well Drilling and Completion Capital Cost, 12
63+
HTML Output File, example12_DH.html

0 commit comments

Comments
 (0)