Skip to content

Commit 4d3d45a

Browse files
authored
L1 should not be file with range (#455)
1 parent 873c089 commit 4d3d45a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

stixcore/io/product_processors/fits/processors.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,11 @@ def generate_filename(cls, product, *, version=0, status="", header=True):
763763
f"{product.utc_timerange.center.strftime('%Y%m%dT000000')}-"
764764
+ f"{product.utc_timerange.center.strftime('%Y%m%dT235959')}"
765765
)
766-
elif product.type not in ["sci", "flarelist", "cal"] or product.name == "burst-aspect":
766+
elif (
767+
product.type not in ["sci", "flarelist"]
768+
or (product.name == "burst-aspect")
769+
or (product.type == "cal" and product.level == "CAL")
770+
):
767771
date_range = product.utc_timerange.center.strftime("%Y%m%d")
768772

769773
return FitsProcessor.generate_filename(

stixcore/products/level1/quicklookL1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ def __init__(
225225
def is_datasource_for(cls, *, service_type, service_subtype, ssid, **kwargs):
226226
return kwargs["level"] == EnergyCalibration.LEVEL and service_type == 21 and service_subtype == 6 and ssid == 41
227227

228+
@property
229+
def fits_daily_file(self):
230+
return True
231+
228232
@classmethod
229233
def from_level0(cls, l0product, parent=""):
230234
l1 = cls(

0 commit comments

Comments
 (0)