Skip to content

Commit fc01367

Browse files
committed
Prepare for the PR
1 parent d85bf5e commit fc01367

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

docs/changes/2979.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add class to write DL3 files

src/ctapipe/io/dl3.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from abc import abstractmethod
22
from collections.abc import Mapping
33
from datetime import UTC, datetime
4-
from functools import lru_cache
54
from typing import Any, Dict, List, Tuple
65

76
import astropy.units as u
@@ -507,7 +506,6 @@ def get_hdu_header_time_reference(self) -> Dict[str, Any]:
507506
"TIMESYS": "TAI",
508507
}
509508

510-
@lru_cache(maxsize=1)
511509
def get_hdu_header_base_time(self) -> Dict[str, Any]:
512510
"""
513511
Return the information about time parameters used in several HDU
@@ -609,7 +607,6 @@ def get_hdu_header_base_software_information(self) -> Dict[str, Any]:
609607
header["CAL_VER"] = self.software_information["calibration_version"]
610608
return header
611609

612-
@lru_cache(maxsize=1)
613610
def get_hdu_header_base_pointing(self) -> Dict[str, Any]:
614611
"""
615612
Return information on the pointing during the observation
@@ -697,7 +694,7 @@ def get_hdu_header_events(self) -> Dict[str, Any]:
697694
The output dictionary contain all the necessary information that should be added to the header of the events HDU
698695
"""
699696
header = self.get_hdu_header_base_format()
700-
header.update({"HDUCLAS1": "EVENTS"})
697+
header.update({"HDUCLAS1": "EVENTS", "FOVALIGN": "ALTAZ"})
701698
header.update(self.get_hdu_header_base_time())
702699
header.update(self.get_hdu_header_base_pointing())
703700
header.update(self.get_hdu_header_base_observation_information())

0 commit comments

Comments
 (0)