wintertoo 1.5.0__tar.gz → 1.6.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.5.0 → wintertoo-1.6.0}/PKG-INFO +3 -3
  2. {wintertoo-1.5.0 → wintertoo-1.6.0}/pyproject.toml +6 -3
  3. {wintertoo-1.5.0 → wintertoo-1.6.0}/tests/testdata/test_schedule.json +1 -1
  4. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/data/observing_request_schema.json +1 -1
  5. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/models/image.py +8 -2
  6. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo.egg-info/PKG-INFO +3 -3
  7. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo.egg-info/requires.txt +2 -2
  8. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/dependabot.yml +0 -0
  9. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/workflows/automerge.yml +0 -0
  10. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/workflows/black.yml +0 -0
  11. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/workflows/continuous_integration.yml +0 -0
  12. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/workflows/isort.yml +0 -0
  13. {wintertoo-1.5.0 → wintertoo-1.6.0}/.github/workflows/pylint.yml +0 -0
  14. {wintertoo-1.5.0 → wintertoo-1.6.0}/.gitignore +0 -0
  15. {wintertoo-1.5.0 → wintertoo-1.6.0}/.pre-commit-config.yaml +0 -0
  16. {wintertoo-1.5.0 → wintertoo-1.6.0}/LICENSE +0 -0
  17. {wintertoo-1.5.0 → wintertoo-1.6.0}/README.md +0 -0
  18. {wintertoo-1.5.0 → wintertoo-1.6.0}/setup.cfg +0 -0
  19. {wintertoo-1.5.0 → wintertoo-1.6.0}/tests/test_fields.py +0 -0
  20. {wintertoo-1.5.0 → wintertoo-1.6.0}/tests/test_schedule.py +0 -0
  21. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/__init__.py +0 -0
  22. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/data/__init__.py +0 -0
  23. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/data/summer_fields.txt +0 -0
  24. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/data/winter_fields.txt +0 -0
  25. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/database.py +0 -0
  26. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/errors.py +0 -0
  27. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/fields.py +0 -0
  28. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/models/__init__.py +0 -0
  29. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/models/program.py +0 -0
  30. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/models/too.py +0 -0
  31. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/schedule.py +0 -0
  32. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/submit.py +0 -0
  33. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/utils.py +0 -0
  34. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo/validate.py +0 -0
  35. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo.egg-info/SOURCES.txt +0 -0
  36. {wintertoo-1.5.0 → wintertoo-1.6.0}/wintertoo.egg-info/dependency_links.txt +0 -0
  37. {wintertoo-1.5.0 → wintertoo-1.6.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.5.0
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wintertoo"
7
- version = "1.5.0"
7
+ version = "1.6.0"
8
8
  description = ""
9
9
  authors = [
10
10
  {name = "Robert Stein", email = "rdstein@caltech.edu"},
@@ -32,8 +32,8 @@ classifiers = [
32
32
  ]
33
33
  dependencies = [
34
34
  "pandas",
35
- "astropy",
36
- "astroplan",
35
+ "astropy>=6.0.0",
36
+ "astroplan>=0.10",
37
37
  "matplotlib",
38
38
  "numpy",
39
39
  "pytz",
@@ -96,3 +96,6 @@ disable=["logging-fstring-interpolation"]
96
96
  good-names=["ax", "ra", "df", "pi", "i"]
97
97
  exclude-too-few-public-methods=["pydantic.*"]
98
98
  extension-pkg-whitelist=["pydantic"]
99
+
100
+ [tool.pylint.typecheck]
101
+ generated-members=["u.*"]
@@ -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":960.0,"1":960.0,"2":960.0,"3":960.0},"singleExpTime":{"0":120.0,"1":120.0,"2":120.0,"3":120.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":8,"1":8,"2":8,"3":8},"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}}
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":960.0,"1":960.0,"2":960.0,"3":960.0},"singleExpTime":{"0":120.0,"1":120.0,"2":120.0,"3":120.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":8,"1":8,"2":8,"3":8},"ditherStepSize":{"0":90.0,"1":90.0,"2":90.0,"3":90.0},"bestDetector":{"0":true,"1":true,"2":true,"3":true},"obsHistID":{"0":0,"1":1,"2":2,"3":3}}
@@ -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": 30.0},
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}
@@ -31,12 +31,12 @@ class ProgramImageQuery(BaseModel):
31
31
  )
32
32
  start_date: int = Field(
33
33
  title="Start date for images",
34
- default=get_date(Time.now() - 30.0 * u.day),
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=get_date(Time.now()),
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.5.0
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
@@ -1,6 +1,6 @@
1
1
  pandas
2
- astropy
3
- astroplan
2
+ astropy>=6.0.0
3
+ astroplan>=0.10
4
4
  matplotlib
5
5
  numpy
6
6
  pytz
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes