From 8aca84e75ce59187e127daac88e6edbe17d3ed29 Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Thu, 27 Feb 2025 17:06:51 -0700 Subject: [PATCH] Add `nrt` keyword to `SpectrographObservation.from_time_range()` classmethod. --- iris/sg/_spectrograph.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iris/sg/_spectrograph.py b/iris/sg/_spectrograph.py index 22bc8cd..acf3b97 100644 --- a/iris/sg/_spectrograph.py +++ b/iris/sg/_spectrograph.py @@ -132,6 +132,7 @@ def from_time_range( axis_detector_x: str = "detector_x", axis_detector_y: str = "detector_y", limit: int = 200, + nrt: bool = False, num_retry: int = 5, ) -> "SpectrographObservation": """ @@ -165,6 +166,8 @@ def from_time_range( The maximum number of observations returned by the query. Note that this is not the same as the number of files since there are several files per observation. + nrt + Whether to return results with near-real-time (NRT) data. num_retry The number of times to try to connect to the server. @@ -175,6 +178,7 @@ def from_time_range( description=description, obs_id=obs_id, limit=limit, + nrt=nrt, spectrograph=True, sji=False, deconvolved=False,