Skip to content

Commit 031a45f

Browse files
committed
Fix broken raked pops
1 parent 0ea5f55 commit 031a45f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/rra_population_model/postprocess/compile_results.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def compile_results_main(
9191
@clio.with_resolution()
9292
@click.option("--bx", type=int, required=True)
9393
@click.option("--by", type=int, required=True)
94-
@clio.with_time_point(pmc.ALL_TIME_POINTS)
94+
@clio.with_time_point(pmc.ANNUAL_TIME_POINTS)
9595
@clio.with_output_directory(pmc.MODEL_ROOT)
9696
@clio.with_num_cores(8)
9797
def compile_results_task(
@@ -183,7 +183,7 @@ def upsample_main(
183183
@clio.with_model_name()
184184
@clio.with_resolution()
185185
@with_spec_name()
186-
@clio.with_time_point(pmc.ALL_TIME_POINTS)
186+
@clio.with_time_point(pmc.ANNUAL_TIME_POINTS)
187187
@clio.with_output_directory(pmc.MODEL_ROOT)
188188
def upsample_task(
189189
model_name: str,
@@ -199,7 +199,7 @@ def upsample_task(
199199
@clio.with_model_name()
200200
@clio.with_resolution()
201201
@with_spec_name(allow_all=True)
202-
@clio.with_time_point(pmc.ALL_TIME_POINTS, allow_all=True)
202+
@clio.with_time_point([str(y) for y in range(1950, 1976)], allow_all=True)
203203
@clio.with_output_directory(pmc.MODEL_ROOT)
204204
@clio.with_num_cores(8)
205205
@clio.with_queue()

src/rra_population_model/postprocess/rake.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def rake_main(
247247
@clio.with_resolution()
248248
@clio.with_model_name()
249249
@clio.with_block_key()
250-
@clio.with_time_point(choices=pmc.ALL_TIME_POINTS)
250+
@clio.with_time_point(choices=pmc.ANNUAL_TIME_POINTS)
251251
@clio.with_output_directory(pmc.MODEL_ROOT)
252252
def rake_task(
253253
resolution: str,
@@ -262,7 +262,7 @@ def rake_task(
262262
@click.command() # type: ignore[arg-type]
263263
@clio.with_resolution(allow_all=False)
264264
@clio.with_model_name()
265-
@clio.with_time_point(allow_all=True)
265+
@clio.with_time_point([str(y) for y in range(1950, 1976)], allow_all=True)
266266
@clio.with_output_directory(pmc.MODEL_ROOT)
267267
@clio.with_num_cores(default=8)
268268
@clio.with_queue()
@@ -279,7 +279,7 @@ def rake(
279279
print("Preparing runs")
280280

281281
model_names = [
282-
# "msftv4_density_log_ntl",
282+
"msftv4_density_log_ntl",
283283
"ghsl_density_log_ntl",
284284
"ghsl_volume_log_ntl",
285285
"ghsl_residential_density_log_ntl",
@@ -327,7 +327,7 @@ def rake(
327327
node_args={
328328
"block-key": block_keys,
329329
"time-point": time_point,
330-
"model-name": model_names,
330+
"model-name": ["ghsl_residential_volume_log_ntl"],
331331
},
332332
task_args={
333333
"resolution": resolution,

0 commit comments

Comments
 (0)