From 8fc9f2de1846c744ed87f906f848e141a5eca574 Mon Sep 17 00:00:00 2001 From: wroberts <wroberts4@wisc.edu> Date: Mon, 12 Aug 2019 10:11:41 -0500 Subject: [PATCH] Improve comments --- aosstower/level_00/influxdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aosstower/level_00/influxdb.py b/aosstower/level_00/influxdb.py index 5610634..0f1722d 100644 --- a/aosstower/level_00/influxdb.py +++ b/aosstower/level_00/influxdb.py @@ -78,7 +78,7 @@ class Updater(object): if self.data.get(key) is None: self.data[key] = np.array([]) self.data[key] = np.append(self.data[key][time_mask], record[key]) - + # Gets the seconds from the start of the current year. This makes any interval chronologically consistent. reference = pd.datetime(record['timestamp'].year, 1, 1) progress = (record['timestamp'] - reference).total_seconds() % self.submit_interval # If data hits or will pass over a submit_interval interval, return data. @@ -143,7 +143,6 @@ def construct_url(data): def get_url_data(avg, wu_id, wu_pw): # Information on what paramaters that can be sent: # https://feedback.weather.com/customer/en/portal/articles/2924682-pws-upload-protocol?b_id=17298 - # For timestamp, want YYYY-MM-DD+hh:mm:ss of last dataset that was averaged, rounded up to nearest minute. timestamp = avg.index[-1] wind_dir = avg['wind_dir'][-1] wind_dir_2m = avg['wind_dir_2m'][-1] -- GitLab