Skip to content

Commit

Permalink
Convert metadata Instrument.site to free string instead of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Sep 11, 2024
1 parent b83225c commit e9ad8f6
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions src/ctapipe/io/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,14 @@ def default_time(self):
class Instrument(Configurable):
"""Instrumental Context"""

site = Enum(
[
"CTA-North",
"CTA-South",
"SDMC",
"HQ",
"MAGIC",
"HESS",
"VERITAS",
"FACT",
"Whipple",
"Other",
],
"Other",
help="Which site of CTA (or external telescope) "
"this instrument is associated with",
site = Unicode(
default_value="Other",
help=(
"Which site of CTAO (or external telescope)"
" this instrument is associated with"
),
).tag(config=True)

class_ = Enum(
[
"Array",
Expand Down

0 comments on commit e9ad8f6

Please sign in to comment.