Skip to content

Commit

Permalink
Use calibration API to fetch time offset information
Browse files Browse the repository at this point in the history
  • Loading branch information
tukiains committed Sep 30, 2024
1 parent 4d2eb2d commit a9b4cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/processing/instrument_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ def process_weather_station(self):
)
if self.params.site.id not in supported_sites:
raise NotImplementedError("Weather station not implemented for this site")
if self.params.site.id in ("kenttarova", "bucharest"):

calibration = fetch_calibration(self.params.instrument.pid, self.params.date)
if calibration is not None and calibration.get("data", {}).get("time_offset"):
(full_paths, self.uuid.raw) = self.processor.download_adjoining_daily_files(
self.params, self.raw_dir
)
Expand Down

0 comments on commit a9b4cc2

Please sign in to comment.