We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 494c27b commit 66b65b4Copy full SHA for 66b65b4
1 file changed
schimpy/batch_metrics.py
@@ -124,7 +124,12 @@ def read_simulation_outputs(
124
else:
125
for i, working_dir in enumerate(outputs_dir):
126
if stations_input is None:
127
- station_infile = os.path.join(working_dir, "station.in")
+ if os.path.basename(working_dir) == "outputs":
128
+ station_infile = os.path.join(
129
+ os.path.dirname(working_dir), "station.in"
130
+ )
131
+ else:
132
+ station_infile = os.path.join(working_dir, "station.in")
133
134
station_infile = stations_input[i]
135
datafname = os.path.join(working_dir, station.staout_name(variable))
0 commit comments