This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
nowcasting_dataset/manager Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44import multiprocessing
55from datetime import datetime
66from functools import partial
7- from typing import List
7+ from typing import List , Optional
88
99import numpy as np
1010import pandas as pd
@@ -47,7 +47,7 @@ class ManagerLive(ManagerBase):
4747 """
4848
4949 def create_files_specifying_spatial_and_temporal_locations_of_each_example (
50- self , t0_datetime : datetime
50+ self , t0_datetime : datetime , n_gsps : Optional [ int ] = N_GSPS
5151 ) -> None :
5252 """Creates CSV files specifying the locations of each example if those files don't exist yet.
5353
@@ -66,8 +66,8 @@ def create_files_specifying_spatial_and_temporal_locations_of_each_example(
6666 datetimes_for_split = [t0_datetime ]
6767
6868 path_for_csv = self .config .output_data .filepath / split_name
69- # TODO make dynamic
70- n_batches_requested = int (np .ceil (N_GSPS / self .config .process .batch_size ))
69+
70+ n_batches_requested = int (np .ceil (n_gsps / self .config .process .batch_size ))
7171
7272 n_examples = n_batches_requested * self .config .process .batch_size
7373 logger .debug (
You can’t perform that action at this time.
0 commit comments