From 6787cdb91f976cb7ca89d4f0c291b699dbd10c61 Mon Sep 17 00:00:00 2001 From: Christian Huitema Date: Thu, 4 Apr 2024 16:51:32 -0700 Subject: [PATCH] Try to get some missing entries --- src/imrs_monthly.py | 2 +- src/imrsrsv.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/imrs_monthly.py b/src/imrs_monthly.py index 454aad7..96ff7de 100644 --- a/src/imrs_monthly.py +++ b/src/imrs_monthly.py @@ -77,7 +77,7 @@ def check_or_create_dir(dir_path): if nb_files > 0: ipstats_file = cluster_id + "." + month + "-" + "ipstats.csv" ipstats_path = join(monthly_folder, ipstats_file) - merge_cmd = ithitool + ' -I ' + ipstats_file + " " + tmp_file_name + merge_cmd = ithitool + ' -I ' + ipstats_path + " " + tmp_file_name cmd_ret = os.system(merge_cmd) if cmd_ret == 0: if do_debug: diff --git a/src/imrsrsv.py b/src/imrsrsv.py index 4295106..5599d1a 100644 --- a/src/imrsrsv.py +++ b/src/imrsrsv.py @@ -132,7 +132,8 @@ def get_list_of_dates(self): slice_date = slice[0:8] date_set.add(slice_date) date_list = sorted(list(date_set)) - self.date_list = [ d for d in date_list[:-1] if d.startswith(self.month) ] + # originally was d in date_list[:-1] to exclude the last one, but we want it now + self.date_list = [ d for d in date_list if d.startswith(self.month) ] if self.do_debug: print("Found " + str(len(self.date_list)) + "dates. Retain 1") print(self.date_list)