Skip to content

Commit

Permalink
Merge pull request #23 from Christian-Palmroos/main
Browse files Browse the repository at this point in the history
Enforced all loaded data to have measurement timestamps at the MIDDLE of the bin.
  • Loading branch information
jgieseler authored Jan 16, 2023
2 parents b275654 + 6d1bffe commit 4e59ea7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions seppy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def load_data(self, spacecraft, sensor, viewing, data_level,
sept_species='p',
sept_viewing=viewing,
resample=None,
pos_timestamp="center",
path=self.data_path)
df_e, channels_dict_df_e = [], []

Expand All @@ -179,6 +180,7 @@ def load_data(self, spacecraft, sensor, viewing, data_level,
sept_species='e',
sept_viewing=viewing,
resample=None,
pos_timestamp="center",
path=self.data_path)

df_i, channels_dict_df_i = [], []
Expand All @@ -192,7 +194,7 @@ def load_data(self, spacecraft, sensor, viewing, data_level,
enddate=self.end_date,
spacecraft=self.spacecraft,
resample=None,
pos_timestamp='center',
pos_timestamp="center",
path=self.data_path)

self.update_viewing(viewing)
Expand All @@ -205,7 +207,7 @@ def load_data(self, spacecraft, sensor, viewing, data_level,
enddate=self.end_date,
path=self.data_path,
resample=None,
pos_timestamp='center')
pos_timestamp="center")

self.update_viewing(viewing)
return df, meta
Expand All @@ -216,7 +218,7 @@ def load_data(self, spacecraft, sensor, viewing, data_level,
enddate=self.end_date,
path=self.data_path,
resample=None,
pos_timestamp='center')
pos_timestamp="center")

self.update_viewing(viewing)
return df, meta
Expand Down

0 comments on commit 4e59ea7

Please sign in to comment.