Skip to content

Commit

Permalink
Add nrt keyword to SpectrographObservation.from_time_range() clas…
Browse files Browse the repository at this point in the history
…smethod.
  • Loading branch information
byrdie authored Feb 28, 2025
1 parent 4da52ca commit 8aca84e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iris/sg/_spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
"""
Expand Down Expand Up @@ -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.
Expand All @@ -175,6 +178,7 @@ def from_time_range(
description=description,
obs_id=obs_id,
limit=limit,
nrt=nrt,
spectrograph=True,
sji=False,
deconvolved=False,
Expand Down

0 comments on commit 8aca84e

Please sign in to comment.