Skip to content
Open
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*.o
*.so
__pycache__
.pytest_cache
.eggs

# Ignore .c files by default to avoid including generated code. If you want to
# add a non-generated .c extension, use `git add -f filename.c`.
Expand All @@ -16,6 +18,7 @@ htmlcov
.coverage
MANIFEST
.ipynb_checkpoints
version.py

# Sphinx
docs/api
Expand Down Expand Up @@ -51,6 +54,8 @@ distribute-*.tar.gz
.project
.pydevproject
.settings
.vscode
.conda

# Mac OSX
.DS_Store
1 change: 1 addition & 0 deletions caom2/caom2/data/CAOM-2.4.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@
<xs:restriction base="xs:string">
<xs:enumeration value="science"/>
<xs:enumeration value="calibration"/>
<xs:enumeration value="outreach"/>
</xs:restriction>
</xs:simpleType>

Expand Down
1 change: 1 addition & 0 deletions caom2/caom2/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class ObservationIntentType(OrderedEnum):
"""
SCIENCE = "science"
CALIBRATION = "calibration"
OUTREACH = "outreach"


class Status(Enum):
Expand Down
2 changes: 2 additions & 0 deletions caom2/caom2/tests/test_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def test_all(self):
"calibration")
self.assertEqual(observation.ObservationIntentType.SCIENCE.value,
"science")
self.assertEqual(observation.ObservationIntentType.OUTREACH.value,
"outreach")

self.assertEqual(observation.Status.FAIL.value, "fail")

Expand Down