wintertoo 1.2.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wintertoo might be problematic. Click here for more details.
- {wintertoo-1.2.0 → wintertoo-1.3.1}/PKG-INFO +1 -1
- {wintertoo-1.2.0 → wintertoo-1.3.1}/pyproject.toml +1 -1
- {wintertoo-1.2.0 → wintertoo-1.3.1}/tests/testdata/test_schedule.json +1 -1
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/data/observing_request_schema.json +2 -1
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/models/image.py +2 -2
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/models/too.py +17 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/schedule.py +1 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo.egg-info/PKG-INFO +1 -1
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/dependabot.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/workflows/automerge.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/workflows/black.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/workflows/continuous_integration.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/workflows/isort.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.github/workflows/pylint.yml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.gitignore +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/.pre-commit-config.yaml +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/LICENSE +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/README.md +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/setup.cfg +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/tests/test_fields.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/tests/test_schedule.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/__init__.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/data/__init__.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/data/summer_fields.txt +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/data/winter_fields.txt +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/database.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/errors.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/fields.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/models/__init__.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/models/program.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/submit.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/utils.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo/validate.py +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo.egg-info/SOURCES.txt +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo.egg-info/dependency_links.txt +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo.egg-info/requires.txt +0 -0
- {wintertoo-1.2.0 → wintertoo-1.3.1}/wintertoo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wintertoo
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Author-email: Robert Stein <rdstein@caltech.edu>, Danielle Frostig <frostig@mit.edu>, Viraj Karambelkar <viraj@astro.caltech.edu>
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: homepage, https://github.com/winter-telescope/wintertoo
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"targName":{"0":null,"1":null,"2":null,"3":null},"raDeg":{"0":173.7056754,"1":173.7056754,"2":173.7056754,"3":173.7056754},"decDeg":{"0":11.253441,"1":11.253441,"2":11.253441,"3":11.253441},"fieldID":{"0":999999999,"1":999999999,"2":999999999,"3":999999999},"filter":{"0":"u","1":"g","2":"r","3":"i"},"visitExpTime":{"0":30.0,"1":30.0,"2":30.0,"3":30.0},"priority":{"0":50.0,"1":50.0,"2":50.0,"3":50.0},"progPI":{"0":"Stein","1":"Stein","2":"Stein","3":"Stein"},"progName":{"0":"2021A000","1":"2021A000","2":"2021A000","3":"2021A000"},"progID":{"0":1,"1":1,"2":1,"3":1},"validStart":{"0":62721.1894969287,"1":62721.1894969287,"2":62721.1894969287,"3":62721.1894969287},"validStop":{"0":62722.1894969452,"1":62722.1894969452,"2":62722.1894969452,"3":62722.1894969452},"observed":{"0":false,"1":false,"2":false,"3":false},"maxAirmass":{"0":2.0,"1":2.0,"2":2.0,"3":2.0},"ditherNumber":{"0":1,"1":1,"2":1,"3":1},"ditherStepSize":{"0":30.0,"1":30.0,"2":30.0,"3":30.0},"obsHistID":{"0":0,"1":1,"2":2,"3":3}}
|
|
1
|
+
{"targName":{"0":null,"1":null,"2":null,"3":null},"raDeg":{"0":173.7056754,"1":173.7056754,"2":173.7056754,"3":173.7056754},"decDeg":{"0":11.253441,"1":11.253441,"2":11.253441,"3":11.253441},"fieldID":{"0":999999999,"1":999999999,"2":999999999,"3":999999999},"filter":{"0":"u","1":"g","2":"r","3":"i"},"visitExpTime":{"0":30.0,"1":30.0,"2":30.0,"3":30.0},"priority":{"0":50.0,"1":50.0,"2":50.0,"3":50.0},"progPI":{"0":"Stein","1":"Stein","2":"Stein","3":"Stein"},"progName":{"0":"2021A000","1":"2021A000","2":"2021A000","3":"2021A000"},"progID":{"0":1,"1":1,"2":1,"3":1},"validStart":{"0":62721.1894969287,"1":62721.1894969287,"2":62721.1894969287,"3":62721.1894969287},"validStop":{"0":62722.1894969452,"1":62722.1894969452,"2":62722.1894969452,"3":62722.1894969452},"observed":{"0":false,"1":false,"2":false,"3":false},"maxAirmass":{"0":2.0,"1":2.0,"2":2.0,"3":2.0},"ditherNumber":{"0":1,"1":1,"2":1,"3":1},"ditherStepSize":{"0":30.0,"1":30.0,"2":30.0,"3":30.0},"bestDetector":{"0":true,"1":true,"2":true,"3":true},"obsHistID":{"0":0,"1":1,"2":2,"3":3}}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"ditherNumber": {"type": "integer", "default": 1},
|
|
18
18
|
"ditherStepSize": {"type": "number", "comment": "arcsec", "default": 30.0},
|
|
19
19
|
"fieldID": {"type": "integer", "default": 999999999},
|
|
20
|
-
"targName": {"type": ["string", "null"], "comment": "Target name e.g. GW170817", "default": null}
|
|
20
|
+
"targName": {"type": ["string", "null"], "comment": "Target name e.g. GW170817", "default": null},
|
|
21
|
+
"bestDetector": {"type": "boolean", "comment": "Center Ra/Dec of target on best detector", "default": true}
|
|
21
22
|
},
|
|
22
23
|
"required": [
|
|
23
24
|
"obsHistID",
|
|
@@ -31,13 +31,13 @@ class ProgramImageQuery(BaseModel):
|
|
|
31
31
|
)
|
|
32
32
|
start_date: int = Field(
|
|
33
33
|
title="Start date for images",
|
|
34
|
-
le=get_date(Time.now()),
|
|
34
|
+
le=get_date(Time.now() + 1 * u.day),
|
|
35
35
|
default=get_date(Time.now() - 30.0 * u.day),
|
|
36
36
|
examples=[get_date(Time.now() - 30.0 * u.day), "20230601"],
|
|
37
37
|
)
|
|
38
38
|
end_date: int = Field(
|
|
39
39
|
title="End date for images",
|
|
40
|
-
le=get_date(Time.now()),
|
|
40
|
+
le=get_date(Time.now() + 1 * u.day),
|
|
41
41
|
default=get_date(Time.now()),
|
|
42
42
|
examples=[get_date(Time.now() - 30.0 * u.day), get_date(Time.now())],
|
|
43
43
|
)
|
|
@@ -64,6 +64,10 @@ class ToORequest(BaseModel):
|
|
|
64
64
|
le=5,
|
|
65
65
|
title="Allowed airmass range",
|
|
66
66
|
)
|
|
67
|
+
use_best_detector: bool = Field(
|
|
68
|
+
default=get_default_value("bestDetector"),
|
|
69
|
+
title="Place ra/dec at the center of the best detector",
|
|
70
|
+
)
|
|
67
71
|
|
|
68
72
|
@model_validator(mode="after")
|
|
69
73
|
def validate_end_time(self):
|
|
@@ -127,6 +131,19 @@ class ObsWithRaDec(BaseModel):
|
|
|
127
131
|
default=False,
|
|
128
132
|
)
|
|
129
133
|
|
|
134
|
+
@model_validator(mode="after")
|
|
135
|
+
def validate_field_best_detector(self):
|
|
136
|
+
"""
|
|
137
|
+
Field validator to ensure that the end time is greater than the start time
|
|
138
|
+
|
|
139
|
+
:return: validated field value
|
|
140
|
+
"""
|
|
141
|
+
if self.use_best_detector & self.use_field_grid:
|
|
142
|
+
raise WinterValidationError(
|
|
143
|
+
"Cannot use both use_best_detector and use_field_grid"
|
|
144
|
+
)
|
|
145
|
+
return self
|
|
146
|
+
|
|
130
147
|
|
|
131
148
|
class ObsWithField(BaseModel):
|
|
132
149
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wintertoo
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Author-email: Robert Stein <rdstein@caltech.edu>, Danielle Frostig <frostig@mit.edu>, Viraj Karambelkar <viraj@astro.caltech.edu>
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: homepage, https://github.com/winter-telescope/wintertoo
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|