wintertoo 1.5.0__py3-none-any.whl → 1.6.0__py3-none-any.whl
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/data/observing_request_schema.json +1 -1
- wintertoo/models/image.py +8 -2
- {wintertoo-1.5.0.dist-info → wintertoo-1.6.0.dist-info}/METADATA +3 -3
- {wintertoo-1.5.0.dist-info → wintertoo-1.6.0.dist-info}/RECORD +7 -7
- {wintertoo-1.5.0.dist-info → wintertoo-1.6.0.dist-info}/WHEEL +1 -1
- {wintertoo-1.5.0.dist-info → wintertoo-1.6.0.dist-info}/LICENSE +0 -0
- {wintertoo-1.5.0.dist-info → wintertoo-1.6.0.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"observed": {"anyOf": [{"type": "boolean", "default": false}, {"type" : "integer", "minimum" : 0, "maximum" : 1}]},
|
|
16
16
|
"maxAirmass": {"type": "number", "comment": "Maximum airmass for observation", "default": 2.0},
|
|
17
17
|
"ditherNumber": {"type": "integer", "default": 8},
|
|
18
|
-
"ditherStepSize": {"type": "number", "comment": "arcsec", "default":
|
|
18
|
+
"ditherStepSize": {"type": "number", "comment": "arcsec", "default": 90.0},
|
|
19
19
|
"fieldID": {"type": "integer", "default": 999999999},
|
|
20
20
|
"targName": {"type": ["string", "null"], "comment": "Target name e.g. GW170817", "default": null},
|
|
21
21
|
"bestDetector": {"type": "boolean", "comment": "Center Ra/Dec of target on best detector", "default": true}
|
wintertoo/models/image.py
CHANGED
|
@@ -31,12 +31,12 @@ class ProgramImageQuery(BaseModel):
|
|
|
31
31
|
)
|
|
32
32
|
start_date: int = Field(
|
|
33
33
|
title="Start date for images",
|
|
34
|
-
default=
|
|
34
|
+
default=None,
|
|
35
35
|
examples=[get_date(Time.now() - 30.0 * u.day), "20230601"],
|
|
36
36
|
)
|
|
37
37
|
end_date: int = Field(
|
|
38
38
|
title="End date for images",
|
|
39
|
-
default=
|
|
39
|
+
default=None,
|
|
40
40
|
examples=[get_date(Time.now() - 30.0 * u.day), get_date(Time.now())],
|
|
41
41
|
)
|
|
42
42
|
image_type: WinterImageTypes = Field(
|
|
@@ -52,6 +52,12 @@ class ProgramImageQuery(BaseModel):
|
|
|
52
52
|
|
|
53
53
|
:return: validated field value
|
|
54
54
|
"""
|
|
55
|
+
if self.start_date is None:
|
|
56
|
+
self.start_date = get_date(Time.now() - 30.0 * u.day)
|
|
57
|
+
|
|
58
|
+
if self.end_date is None:
|
|
59
|
+
self.end_date = get_date(Time.now())
|
|
60
|
+
|
|
55
61
|
if self.start_date > self.end_date:
|
|
56
62
|
raise WinterValidationError("Start date is after end date")
|
|
57
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wintertoo
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.6.0
|
|
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
|
|
@@ -22,8 +22,8 @@ Requires-Python: >=3.9
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: pandas
|
|
25
|
-
Requires-Dist: astropy
|
|
26
|
-
Requires-Dist: astroplan
|
|
25
|
+
Requires-Dist: astropy >=6.0.0
|
|
26
|
+
Requires-Dist: astroplan >=0.10
|
|
27
27
|
Requires-Dist: matplotlib
|
|
28
28
|
Requires-Dist: numpy
|
|
29
29
|
Requires-Dist: pytz
|
|
@@ -7,15 +7,15 @@ wintertoo/submit.py,sha256=kd6_aziOf5QcemsyyhSRSnbXlLj8OWsY1_Gj0ZXsUuo,3201
|
|
|
7
7
|
wintertoo/utils.py,sha256=BWgBZoSX5xfqURb2Nkvf3i6A_IcVYU2SoXFvp6ez7Xc,3306
|
|
8
8
|
wintertoo/validate.py,sha256=YpSABluVXxl33j_ht7TwfC-0SlN4IC0BnbbQiTwUk4c,10476
|
|
9
9
|
wintertoo/data/__init__.py,sha256=OPsHalwB9mTMBHp-W-iAbsP39hrgQ4myNt1Daxkwz2s,1602
|
|
10
|
-
wintertoo/data/observing_request_schema.json,sha256=
|
|
10
|
+
wintertoo/data/observing_request_schema.json,sha256=PsQmSre-VpfCTwoo3Fc9VoPV4-mByLs6KYKZ7x5zzco,1733
|
|
11
11
|
wintertoo/data/summer_fields.txt,sha256=5Sc7MBUacelzaq1KHSLmfAyZ3WB5YifMNwKRjBRBcRk,52684603
|
|
12
12
|
wintertoo/data/winter_fields.txt,sha256=TxySQTmJXCCgaf-oC1gzOYQb2Vr26KEKdJxqrZHHet0,3529364
|
|
13
13
|
wintertoo/models/__init__.py,sha256=c2GEbIHvOT34IhpiMyqA7Tn83hEmnwx6Q7BuxURp97k,379
|
|
14
|
-
wintertoo/models/image.py,sha256=
|
|
14
|
+
wintertoo/models/image.py,sha256=VdlyF_goBMzmAmMHSIevEbheQOLMzFdxz10AK5Wwmqw,4066
|
|
15
15
|
wintertoo/models/program.py,sha256=mtewVnt7NxSK0hxX8aUO8qehEtOi_Cieli4voCCRh4I,1804
|
|
16
16
|
wintertoo/models/too.py,sha256=SXaAx_nkPyqYaUS7UChA86TkeKrIOqvxccrNXaXXvbo,6098
|
|
17
|
-
wintertoo-1.
|
|
18
|
-
wintertoo-1.
|
|
19
|
-
wintertoo-1.
|
|
20
|
-
wintertoo-1.
|
|
21
|
-
wintertoo-1.
|
|
17
|
+
wintertoo-1.6.0.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
|
|
18
|
+
wintertoo-1.6.0.dist-info/METADATA,sha256=ZR_BamQRW2Ie9JUYgvPrso09yzidNa46pC-D6_PIoGo,2513
|
|
19
|
+
wintertoo-1.6.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
20
|
+
wintertoo-1.6.0.dist-info/top_level.txt,sha256=6SMjMBzaNrD77erdCiVcRTrPZ-x98SDX43akRjWj4T8,10
|
|
21
|
+
wintertoo-1.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|