wintertoo 0.4.1__py3-none-any.whl → 0.4.2__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/too.py +2 -5
- wintertoo/schedule.py +4 -5
- {wintertoo-0.4.1.dist-info → wintertoo-0.4.2.dist-info}/METADATA +1 -1
- {wintertoo-0.4.1.dist-info → wintertoo-0.4.2.dist-info}/RECORD +8 -8
- {wintertoo-0.4.1.dist-info → wintertoo-0.4.2.dist-info}/LICENSE +0 -0
- {wintertoo-0.4.1.dist-info → wintertoo-0.4.2.dist-info}/WHEEL +0 -0
- {wintertoo-0.4.1.dist-info → wintertoo-0.4.2.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ditherNumber": {"type": "integer", "default": 1},
|
|
18
18
|
"ditherStepSize": {"type": "number", "comment": "arcsec", "default": 600.0},
|
|
19
19
|
"fieldID": {"type": "integer", "default": 999999999},
|
|
20
|
-
"targName": {"type": ["string", "null"], "comment": "Target name e.g. GW170817"
|
|
20
|
+
"targName": {"type": ["string", "null"], "comment": "Target name e.g. GW170817"}
|
|
21
21
|
},
|
|
22
22
|
"required": [
|
|
23
23
|
"obsHistID",
|
wintertoo/models/too.py
CHANGED
|
@@ -62,11 +62,6 @@ class ToORequest(BaseModel):
|
|
|
62
62
|
le=5,
|
|
63
63
|
title="Allowed airmass range",
|
|
64
64
|
)
|
|
65
|
-
target_name: Optional[str] = Field(
|
|
66
|
-
title="Target name",
|
|
67
|
-
default=get_default_value("targName"),
|
|
68
|
-
examples=["SN2021abc", "GW170817_A", "IC191001A_1"],
|
|
69
|
-
)
|
|
70
65
|
|
|
71
66
|
@field_validator("end_time_mjd")
|
|
72
67
|
@classmethod
|
|
@@ -113,6 +108,8 @@ class ToORequest(BaseModel):
|
|
|
113
108
|
f"while you have selected {t_per_dither} s per dither"
|
|
114
109
|
)
|
|
115
110
|
|
|
111
|
+
return self
|
|
112
|
+
|
|
116
113
|
model_config = ConfigDict(extra="forbid")
|
|
117
114
|
|
|
118
115
|
|
wintertoo/schedule.py
CHANGED
|
@@ -59,7 +59,6 @@ def make_schedule(
|
|
|
59
59
|
"maxAirmass": too.max_airmass,
|
|
60
60
|
"ditherNumber": too.n_dither,
|
|
61
61
|
"ditherStepSize": too.dither_distance,
|
|
62
|
-
"targName": too.target_name,
|
|
63
62
|
}
|
|
64
63
|
all_entries.append(new)
|
|
65
64
|
|
|
@@ -80,7 +79,7 @@ def build_schedule_list(
|
|
|
80
79
|
too: FullTooRequest,
|
|
81
80
|
program: Program,
|
|
82
81
|
csv_save_file: str = None,
|
|
83
|
-
):
|
|
82
|
+
) -> pd.DataFrame:
|
|
84
83
|
"""
|
|
85
84
|
Generate a full schedule request for single target,
|
|
86
85
|
with all of RA, Dec and Field ID provided
|
|
@@ -119,7 +118,7 @@ def schedule_ra_dec(
|
|
|
119
118
|
else:
|
|
120
119
|
field_id = get_default_value("fieldID")
|
|
121
120
|
|
|
122
|
-
full_request = FullTooRequest(field_id=field_id, **too.
|
|
121
|
+
full_request = FullTooRequest(field_id=field_id, **too.model_dump())
|
|
123
122
|
|
|
124
123
|
schedule = make_schedule(
|
|
125
124
|
toos=[full_request],
|
|
@@ -150,7 +149,7 @@ def schedule_field(
|
|
|
150
149
|
ra_deg = float(field_details["RA"].iloc[0])
|
|
151
150
|
dec_deg = float(field_details["Dec"].iloc[0])
|
|
152
151
|
|
|
153
|
-
full_request = FullTooRequest(ra_deg=ra_deg, dec_deg=dec_deg, **too.
|
|
152
|
+
full_request = FullTooRequest(ra_deg=ra_deg, dec_deg=dec_deg, **too.model_dump())
|
|
154
153
|
|
|
155
154
|
schedule = make_schedule(
|
|
156
155
|
toos=[full_request],
|
|
@@ -186,7 +185,7 @@ def concat_toos(
|
|
|
186
185
|
program=program,
|
|
187
186
|
)
|
|
188
187
|
else:
|
|
189
|
-
err = f"Unrecognised type {type(too)}"
|
|
188
|
+
err = f"Unrecognised type {type(too)} for {too}"
|
|
190
189
|
logger.error(err)
|
|
191
190
|
raise WinterValidationError(err)
|
|
192
191
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wintertoo
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -2,20 +2,20 @@ wintertoo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
wintertoo/database.py,sha256=I-GP76aNmO1KDNbiEdpqsbHLVvTE791QwOqab6I_BHc,3019
|
|
3
3
|
wintertoo/errors.py,sha256=iAFcy0z3A3bCnkJmAt_P-77fPaPHFGS1JbrK6O2dCEM,223
|
|
4
4
|
wintertoo/fields.py,sha256=xxQs-dZeBeiqemOoTtL0iihyLwzDfrRS8Dqc9N73BfI,6028
|
|
5
|
-
wintertoo/schedule.py,sha256=
|
|
5
|
+
wintertoo/schedule.py,sha256=jr6pOuA89Tlonm8bM0QinoHzGtHVgRLMv2z9TZdEF3c,5475
|
|
6
6
|
wintertoo/submit.py,sha256=0Ok3EiwSMB26Wp8c3Y3xfhd2MRWrWCuNpHTxwu8MbcM,2410
|
|
7
7
|
wintertoo/utils.py,sha256=BWgBZoSX5xfqURb2Nkvf3i6A_IcVYU2SoXFvp6ez7Xc,3306
|
|
8
8
|
wintertoo/validate.py,sha256=R8GwP8DmDTSeDGEGZ16yW_2jgZqGNxcSqjLFw0f8O9E,8963
|
|
9
9
|
wintertoo/data/__init__.py,sha256=XMHBEWA9_fioEFIbYZASV1t90JFi1gIAfNKyCRk2x54,1466
|
|
10
|
-
wintertoo/data/observing_request_schema.json,sha256=
|
|
10
|
+
wintertoo/data/observing_request_schema.json,sha256=A79t4FzTeZQgK3kA_087LT2xpS7EaDcjkKtNUqAWoog,1603
|
|
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=ZE3R3rCgijStd36IEs620NRP9R18Ay2CvYUZyJQvreA,234
|
|
14
14
|
wintertoo/models/image.py,sha256=l0gsXM68AvN5NkD1JGMbFZkLz2Qx4EjzSL9Z3YjoOes,2484
|
|
15
15
|
wintertoo/models/program.py,sha256=D3UyzkedmX5L5eM3wGY398GXf3v2g27b0FlHpnRCNhc,2145
|
|
16
|
-
wintertoo/models/too.py,sha256=
|
|
17
|
-
wintertoo-0.4.
|
|
18
|
-
wintertoo-0.4.
|
|
19
|
-
wintertoo-0.4.
|
|
20
|
-
wintertoo-0.4.
|
|
21
|
-
wintertoo-0.4.
|
|
16
|
+
wintertoo/models/too.py,sha256=ZQyX2ak2-EeUa_S6nEg6EZrjt6h4l5EtmZFVvmkxUOM,4885
|
|
17
|
+
wintertoo-0.4.2.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
|
|
18
|
+
wintertoo-0.4.2.dist-info/METADATA,sha256=5qjocQ4uiVn3gllBbaab1TSkSciPGGXRtEq6N25gnH0,2499
|
|
19
|
+
wintertoo-0.4.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
20
|
+
wintertoo-0.4.2.dist-info/top_level.txt,sha256=6SMjMBzaNrD77erdCiVcRTrPZ-x98SDX43akRjWj4T8,10
|
|
21
|
+
wintertoo-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|