Skip to content

Commit 036e2eb

Browse files
revert copy editing (to keep diff cleaner)
1 parent 764d67a commit 036e2eb

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/geophires_monte_carlo/MC_GeoPHIRES3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def main(command_line_args=None):
342342
# get the values off the command line
343343
parser = argparse.ArgumentParser()
344344
parser.add_argument('Code_File', help='Code File')
345-
parser.add_argument('Input_file', help='Inputs file')
345+
parser.add_argument('Input_file', help='Input file')
346346
parser.add_argument('MC_Settings_file', help='MC Settings file')
347347
parser.add_argument('MC_OUTPUT_FILE', help='Output file', nargs='?')
348348

@@ -448,7 +448,7 @@ def main(command_line_args=None):
448448
if '-9999.0' not in line and len(s) > 1:
449449
line = line.strip()
450450
if len(line) > 10:
451-
line, sep, tail = line.partition(', (') # strip off the Inputs Variable Values
451+
line, sep, tail = line.partition(', (') # strip off the Input Variable Values
452452
line = line.replace('(', '').replace(')', '') # strip off the ()
453453
results.append([float(y) for y in line.split(',')])
454454
else:

src/geophires_x/GeoPHIRESUtils.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def density_water_kg_per_m3(Twater_degC: float, pressure: Optional[PlainQuantity
251251
return CP.PropsSI('D', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
252252

253253
except (NotImplementedError, ValueError) as e:
254-
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
254+
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
255255
f'are out of range or otherwise could not be used to calculate water density.') from e
256256

257257

@@ -297,7 +297,7 @@ def viscosity_water_Pa_sec(
297297
return CP.PropsSI('V', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
298298

299299
except (NotImplementedError, ValueError) as e:
300-
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
300+
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
301301
f'are out of range or otherwise could not be used to calculate water viscosity.') from e
302302

303303

@@ -333,7 +333,7 @@ def heat_capacity_water_J_per_kg_per_K(
333333
return CP.PropsSI('C', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
334334

335335
except (NotImplementedError, ValueError) as e:
336-
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
336+
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
337337
f'are out of range or otherwise could not be used to calculate heat capacity of water.') from e
338338

339339

@@ -383,16 +383,16 @@ def vapor_pressure_water_kPa(temperature_degC: float) -> float:
383383
"""
384384

385385
if not isinstance(temperature_degC, (int, float)):
386-
raise ValueError(f'Inputs temperature ({temperature_degC}) must be a number')
386+
raise ValueError(f'Input temperature ({temperature_degC}) must be a number')
387387
if temperature_degC < 0:
388-
raise ValueError(f'Inputs temperature ({temperature_degC}C) must be greater than or equal to 0')
388+
raise ValueError(f'Input temperature ({temperature_degC}C) must be greater than or equal to 0')
389389

390390
try:
391391
return (quantity(CP.PropsSI('P', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water'), 'Pa')
392392
.to('kPa').magnitude)
393393

394394
except (NotImplementedError, ValueError) as e:
395-
raise ValueError(f'Inputs temperature ({temperature_degC}C) is out of range or otherwise not implemented') from e
395+
raise ValueError(f'Input temperature ({temperature_degC}C) is out of range or otherwise not implemented') from e
396396

397397

398398
@lru_cache
@@ -413,7 +413,7 @@ def entropy_water_kJ_per_kg_per_K(temperature_degC: float, pressure: Optional[Pl
413413
try:
414414
temperature_degC = float(temperature_degC)
415415
except ValueError:
416-
raise TypeError(f'Inputs temperature ({temperature_degC}) must be a float')
416+
raise TypeError(f'Input temperature ({temperature_degC}) must be a float')
417417

418418
try:
419419
if pressure is not None:
@@ -422,7 +422,7 @@ def entropy_water_kJ_per_kg_per_K(temperature_degC: float, pressure: Optional[Pl
422422
else:
423423
return CP.PropsSI('S', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water') * 1e-3
424424
except (NotImplementedError, ValueError) as e:
425-
raise ValueError(f'Inputs temperature {temperature_degC} is out of range or otherwise not implemented') from e
425+
raise ValueError(f'Input temperature {temperature_degC} is out of range or otherwise not implemented') from e
426426

427427

428428
@lru_cache
@@ -443,7 +443,7 @@ def enthalpy_water_kJ_per_kg(temperature_degC: float, pressure: Optional[PlainQu
443443
try:
444444
temperature_degC = float(temperature_degC)
445445
except ValueError:
446-
raise TypeError(f'Inputs temperature ({temperature_degC}) must be a float')
446+
raise TypeError(f'Input temperature ({temperature_degC}) must be a float')
447447

448448
try:
449449
if pressure is not None:
@@ -453,7 +453,7 @@ def enthalpy_water_kJ_per_kg(temperature_degC: float, pressure: Optional[PlainQu
453453
return CP.PropsSI('H', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water') * 1e-3
454454

455455
except (NotImplementedError, ValueError) as e:
456-
raise ValueError(f'Inputs temperature {temperature_degC} is out of range or otherwise not implemented') from e
456+
raise ValueError(f'Input temperature {temperature_degC} is out of range or otherwise not implemented') from e
457457

458458

459459
@lru_cache
@@ -470,7 +470,7 @@ def UtilEff_func(temperature_degC: float) -> float:
470470
"""
471471

472472
if not isinstance(temperature_degC, (int, float)):
473-
raise ValueError(f'Inputs temperature ({temperature_degC}) must be a number')
473+
raise ValueError(f'Input temperature ({temperature_degC}) must be a number')
474474

475475
if temperature_degC < _T[0] or temperature_degC > _T[-1]:
476476
raise ValueError(f'Temperature ({temperature_degC}) must be within the range of {_T[0]} to {_T[-1]} degrees C.')

src/geophires_x/OptionList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class GeophiresInputEnum(str, Enum):
77
"""
8-
Inputs enums have a name, integer input value, and string value
8+
Input enums have a name, integer input value, and string value
99
1010
TODO implement from_int/from_input_string here instead of child classes
1111
"""

src/geophires_x/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77

88
parser = argparse.ArgumentParser(description='GEOPHIRES-X CLI')
9-
parser.add_argument('input-file', nargs=1, help='Inputs file path')
9+
parser.add_argument('input-file', nargs=1, help='Input file path')
1010
parser.add_argument('output-file', nargs='?', help='Output file path')
1111
parsed_args = {k: v for k, v in vars(parser.parse_args()).items() if v is not None}
1212

0 commit comments

Comments
 (0)