wintertoo 1.5.0__tar.gz → 1.5.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.

Files changed (37) hide show
  1. {wintertoo-1.5.0 → wintertoo-1.5.1}/PKG-INFO +1 -1
  2. {wintertoo-1.5.0 → wintertoo-1.5.1}/pyproject.toml +4 -1
  3. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/models/image.py +8 -2
  4. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo.egg-info/PKG-INFO +1 -1
  5. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/dependabot.yml +0 -0
  6. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/workflows/automerge.yml +0 -0
  7. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/workflows/black.yml +0 -0
  8. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/workflows/continuous_integration.yml +0 -0
  9. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/workflows/isort.yml +0 -0
  10. {wintertoo-1.5.0 → wintertoo-1.5.1}/.github/workflows/pylint.yml +0 -0
  11. {wintertoo-1.5.0 → wintertoo-1.5.1}/.gitignore +0 -0
  12. {wintertoo-1.5.0 → wintertoo-1.5.1}/.pre-commit-config.yaml +0 -0
  13. {wintertoo-1.5.0 → wintertoo-1.5.1}/LICENSE +0 -0
  14. {wintertoo-1.5.0 → wintertoo-1.5.1}/README.md +0 -0
  15. {wintertoo-1.5.0 → wintertoo-1.5.1}/setup.cfg +0 -0
  16. {wintertoo-1.5.0 → wintertoo-1.5.1}/tests/test_fields.py +0 -0
  17. {wintertoo-1.5.0 → wintertoo-1.5.1}/tests/test_schedule.py +0 -0
  18. {wintertoo-1.5.0 → wintertoo-1.5.1}/tests/testdata/test_schedule.json +0 -0
  19. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/__init__.py +0 -0
  20. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/data/__init__.py +0 -0
  21. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/data/observing_request_schema.json +0 -0
  22. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/data/summer_fields.txt +0 -0
  23. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/data/winter_fields.txt +0 -0
  24. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/database.py +0 -0
  25. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/errors.py +0 -0
  26. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/fields.py +0 -0
  27. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/models/__init__.py +0 -0
  28. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/models/program.py +0 -0
  29. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/models/too.py +0 -0
  30. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/schedule.py +0 -0
  31. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/submit.py +0 -0
  32. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/utils.py +0 -0
  33. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo/validate.py +0 -0
  34. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo.egg-info/SOURCES.txt +0 -0
  35. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo.egg-info/dependency_links.txt +0 -0
  36. {wintertoo-1.5.0 → wintertoo-1.5.1}/wintertoo.egg-info/requires.txt +0 -0
  37. {wintertoo-1.5.0 → wintertoo-1.5.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.5.0
3
+ Version: 1.5.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
@@ -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.5.1"
8
8
  description = ""
9
9
  authors = [
10
10
  {name = "Robert Stein", email = "rdstein@caltech.edu"},
@@ -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.*"]
@@ -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.5.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