wintertoo 1.5.0__py3-none-any.whl → 1.5.1__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/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=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
@@ -11,11 +11,11 @@ wintertoo/data/observing_request_schema.json,sha256=00laKF0S5O6lolsUrimReR67gymC
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=KG07tysYHPiFcQplkC4aZ9NjoQLb8TNl2Cy5WFU2a5w,3926
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.5.0.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
18
- wintertoo-1.5.0.dist-info/METADATA,sha256=rgU0vbaECPDD6ye9eVTVGCwPKSa9BGvBe1c4rcRCiKg,2498
19
- wintertoo-1.5.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
20
- wintertoo-1.5.0.dist-info/top_level.txt,sha256=6SMjMBzaNrD77erdCiVcRTrPZ-x98SDX43akRjWj4T8,10
21
- wintertoo-1.5.0.dist-info/RECORD,,
17
+ wintertoo-1.5.1.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
18
+ wintertoo-1.5.1.dist-info/METADATA,sha256=BAnnPf7BuqE-XwY6w9o1eRFHv1VyT8TlObHvhN9-t0k,2498
19
+ wintertoo-1.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
+ wintertoo-1.5.1.dist-info/top_level.txt,sha256=6SMjMBzaNrD77erdCiVcRTrPZ-x98SDX43akRjWj4T8,10
21
+ wintertoo-1.5.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5