wintertoo 1.2.0__tar.gz → 1.3.0__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.

Files changed (37) hide show
  1. {wintertoo-1.2.0 → wintertoo-1.3.0}/PKG-INFO +1 -1
  2. {wintertoo-1.2.0 → wintertoo-1.3.0}/pyproject.toml +1 -1
  3. {wintertoo-1.2.0 → wintertoo-1.3.0}/tests/testdata/test_schedule.json +1 -1
  4. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/data/observing_request_schema.json +2 -1
  5. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/models/too.py +17 -0
  6. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/schedule.py +1 -0
  7. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo.egg-info/PKG-INFO +1 -1
  8. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/dependabot.yml +0 -0
  9. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/workflows/automerge.yml +0 -0
  10. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/workflows/black.yml +0 -0
  11. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/workflows/continuous_integration.yml +0 -0
  12. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/workflows/isort.yml +0 -0
  13. {wintertoo-1.2.0 → wintertoo-1.3.0}/.github/workflows/pylint.yml +0 -0
  14. {wintertoo-1.2.0 → wintertoo-1.3.0}/.gitignore +0 -0
  15. {wintertoo-1.2.0 → wintertoo-1.3.0}/.pre-commit-config.yaml +0 -0
  16. {wintertoo-1.2.0 → wintertoo-1.3.0}/LICENSE +0 -0
  17. {wintertoo-1.2.0 → wintertoo-1.3.0}/README.md +0 -0
  18. {wintertoo-1.2.0 → wintertoo-1.3.0}/setup.cfg +0 -0
  19. {wintertoo-1.2.0 → wintertoo-1.3.0}/tests/test_fields.py +0 -0
  20. {wintertoo-1.2.0 → wintertoo-1.3.0}/tests/test_schedule.py +0 -0
  21. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/__init__.py +0 -0
  22. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/data/__init__.py +0 -0
  23. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/data/summer_fields.txt +0 -0
  24. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/data/winter_fields.txt +0 -0
  25. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/database.py +0 -0
  26. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/errors.py +0 -0
  27. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/fields.py +0 -0
  28. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/models/__init__.py +0 -0
  29. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/models/image.py +0 -0
  30. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/models/program.py +0 -0
  31. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/submit.py +0 -0
  32. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/utils.py +0 -0
  33. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo/validate.py +0 -0
  34. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo.egg-info/SOURCES.txt +0 -0
  35. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo.egg-info/dependency_links.txt +0 -0
  36. {wintertoo-1.2.0 → wintertoo-1.3.0}/wintertoo.egg-info/requires.txt +0 -0
  37. {wintertoo-1.2.0 → wintertoo-1.3.0}/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.2.0
3
+ Version: 1.3.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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wintertoo"
7
- version = "1.2.0"
7
+ version = "1.3.0"
8
8
  description = ""
9
9
  authors = [
10
10
  {name = "Robert Stein", email = "rdstein@caltech.edu"},
@@ -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",
@@ -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
  """
@@ -61,6 +61,7 @@ def make_schedule(
61
61
  "maxAirmass": too.max_airmass,
62
62
  "ditherNumber": too.n_dither,
63
63
  "ditherStepSize": too.dither_distance,
64
+ "bestDetector": too.use_best_detector,
64
65
  }
65
66
  all_entries.append(new)
66
67
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wintertoo
3
- Version: 1.2.0
3
+ Version: 1.3.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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes