Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion stixcore/io/product_processors/fits/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,11 @@ def generate_filename(cls, product, *, version=0, status="", header=True):
f"{product.utc_timerange.center.strftime('%Y%m%dT000000')}-"
+ f"{product.utc_timerange.center.strftime('%Y%m%dT235959')}"
)
elif product.type not in ["sci", "flarelist", "cal"] or product.name == "burst-aspect":
elif (
product.type not in ["sci", "flarelist"]
or (product.name == "burst-aspect")
or (product.type == "cal" and product.level == "CAL")
):
date_range = product.utc_timerange.center.strftime("%Y%m%d")

return FitsProcessor.generate_filename(
Expand Down
4 changes: 4 additions & 0 deletions stixcore/products/level1/quicklookL1.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ def __init__(
def is_datasource_for(cls, *, service_type, service_subtype, ssid, **kwargs):
return kwargs["level"] == EnergyCalibration.LEVEL and service_type == 21 and service_subtype == 6 and ssid == 41

@property
def fits_daily_file(self):
return True

@classmethod
def from_level0(cls, l0product, parent=""):
l1 = cls(
Expand Down