wintertoo 0.3.6__py3-none-any.whl → 0.3.8__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/schedule.py CHANGED
@@ -174,12 +174,12 @@ def concat_toos(
174
174
  schedule = []
175
175
 
176
176
  for too in requests:
177
- if isinstance(too, Union[SummerFieldToO, WinterFieldToO]):
177
+ if isinstance(too, (SummerFieldToO, WinterFieldToO)):
178
178
  res = schedule_field(
179
179
  too=too,
180
180
  program=program,
181
181
  )
182
- elif isinstance(too, Union[SummerRaDecToO, WinterRaDecToO]):
182
+ elif isinstance(too, (SummerRaDecToO, WinterRaDecToO)):
183
183
  res = schedule_ra_dec(
184
184
  too=too,
185
185
  program=program,
wintertoo/submit.py CHANGED
@@ -40,6 +40,7 @@ def submit_schedule( # pylint: disable=too-many-arguments
40
40
  schedule: pd.DataFrame,
41
41
  program_api_key: str,
42
42
  program_name: str,
43
+ program_db_name: str,
43
44
  program_db_host: str,
44
45
  program_db_user: str,
45
46
  program_db_password: str,
@@ -52,6 +53,7 @@ def submit_schedule( # pylint: disable=too-many-arguments
52
53
  :param schedule: schedule to use
53
54
  :param program_api_key: API key of program
54
55
  :param program_name: Program name (e.g 2020A000)
56
+ :param program_db_name: Name of program DB
55
57
  :param program_db_host: Host of programs DB
56
58
  :param program_db_user: User of programs DB
57
59
  :param program_db_password: password of programs DB
@@ -63,6 +65,7 @@ def submit_schedule( # pylint: disable=too-many-arguments
63
65
  schedule,
64
66
  program_api_key=program_api_key,
65
67
  program_name=program_name,
68
+ program_db_name=program_db_name,
66
69
  program_db_user=program_db_user,
67
70
  program_db_password=program_db_password,
68
71
  program_db_host=program_db_host,
wintertoo/utils.py CHANGED
File without changes
wintertoo/validate.py CHANGED
@@ -37,7 +37,6 @@ def get_and_validate_program_details( # pylint: disable=too-many-arguments
37
37
  :param program_db_name: name of database containing program table
38
38
  :return: dataframe of program
39
39
  """
40
-
41
40
  data = get_program_details(
42
41
  program_name=program_name,
43
42
  program_api_key=program_api_key,
@@ -229,6 +228,7 @@ def validate_schedule_request( # pylint: disable=too-many-arguments
229
228
  schedule_request: pd.DataFrame,
230
229
  program_name: str,
231
230
  program_api_key: str,
231
+ program_db_name: str,
232
232
  program_db_user: str = None,
233
233
  program_db_password: str = None,
234
234
  program_db_host: str = PROGRAM_DB_HOST,
@@ -239,6 +239,7 @@ def validate_schedule_request( # pylint: disable=too-many-arguments
239
239
  :param schedule_request: Schedule to validate
240
240
  :param program_name: name of program e.g 2020A000
241
241
  :param program_api_key: unique API key for program
242
+ :param program_db_name: name of the programs database
242
243
  :param program_db_user: user for the programs database
243
244
  :param program_db_password: password for the programs database
244
245
  :param program_db_host: host of the programs database
@@ -255,6 +256,7 @@ def validate_schedule_request( # pylint: disable=too-many-arguments
255
256
  program = get_and_validate_program_details(
256
257
  program_name=program_name,
257
258
  program_api_key=program_api_key,
259
+ program_db_name=program_db_name,
258
260
  program_db_user=program_db_user,
259
261
  program_db_password=program_db_password,
260
262
  program_db_host=program_db_host,
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.1
2
+ Name: wintertoo
3
+ Version: 0.3.8
4
+ Author-email: Robert Stein <rdstein@caltech.edu>, Danielle Frostig <frostig@mit.edu>, Viraj Karambelkar <viraj@astro.caltech.edu>
5
+ License: MIT
6
+ Project-URL: homepage, https://github.com/winter-telescope/wintertoo
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Intended Audience :: End Users/Desktop
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Natural Language :: English
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
17
+ Classifier: Topic :: Scientific/Engineering :: Physics
18
+ Classifier: Operating System :: POSIX
19
+ Classifier: Operating System :: Unix
20
+ Classifier: Operating System :: MacOS
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: pandas (>=2.0.0)
25
+ Requires-Dist: astropy
26
+ Requires-Dist: astroplan
27
+ Requires-Dist: matplotlib
28
+ Requires-Dist: numpy
29
+ Requires-Dist: pytz
30
+ Requires-Dist: jsonschema
31
+ Requires-Dist: sqlalchemy
32
+ Requires-Dist: pydantic
33
+ Requires-Dist: pre-commit
34
+ Requires-Dist: bcrypt
35
+ Requires-Dist: psycopg
36
+ Requires-Dist: psycopg-binary
37
+ Provides-Extra: dev
38
+ Requires-Dist: black (==23.3.0) ; extra == 'dev'
39
+ Requires-Dist: isort (==5.12.0) ; extra == 'dev'
40
+ Requires-Dist: pylint (==2.17.4) ; extra == 'dev'
41
+ Requires-Dist: coveralls ; extra == 'dev'
42
+
43
+ # wintertoo
44
+ [![PyPI version](https://badge.fury.io/py/wintertoo.svg)](https://badge.fury.io/py/wintertoo)
45
+ [![CI](https://github.com/winter-telescope/wintertoo/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/winter-telescope/wintertoo/actions/workflows/continuous_integration.yml)
46
+ [![Coverage Status](https://coveralls.io/repos/github/winter-telescope/wintertoo/badge.svg?branch=main)](https://coveralls.io/github/winter-telescope/wintertoo?branch=main)
47
+
48
+ General package for Target-of-Opportunity (ToO) observations with the [WINTER observatory](https://github.com/winter-telescope).
49
+
50
+ Current functionality includes:
51
+ * Converting RA/DEC positions to fields
52
+ * Building ToO schedules
53
+ * Verifying ToO schedules
54
+
55
+ ## Installation
56
+ ### Install from pypi
57
+ ```bash
58
+ pip install wintertoo
59
+ ```
60
+
61
+ ### Install from source
62
+ ```bash
63
+ git clone git@github.com:winter-telescope/wintertoo.git
64
+ cd wintertoo
65
+ pip install --editable ".[dev]"
66
+ ```
@@ -1,20 +1,21 @@
1
1
  wintertoo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ wintertoo/database.py,sha256=I-GP76aNmO1KDNbiEdpqsbHLVvTE791QwOqab6I_BHc,3019
3
+ wintertoo/errors.py,sha256=iAFcy0z3A3bCnkJmAt_P-77fPaPHFGS1JbrK6O2dCEM,223
4
+ wintertoo/fields.py,sha256=AX21FB0-qolcpsRYkIywd16CeX8W023Qq5g3rLmfVEo,5923
5
+ wintertoo/schedule.py,sha256=_v1JMrMYzkgiX5YcnoGoCuCEYlPQh-RdNim1REHWE00,5437
6
+ wintertoo/submit.py,sha256=0Ok3EiwSMB26Wp8c3Y3xfhd2MRWrWCuNpHTxwu8MbcM,2410
7
+ wintertoo/utils.py,sha256=BWgBZoSX5xfqURb2Nkvf3i6A_IcVYU2SoXFvp6ez7Xc,3306
8
+ wintertoo/validate.py,sha256=R8GwP8DmDTSeDGEGZ16yW_2jgZqGNxcSqjLFw0f8O9E,8963
2
9
  wintertoo/data/__init__.py,sha256=vVltDgj2leaWF1Awl4ohZqZzCr_OIZDccVx_2ZWSgfI,1415
3
10
  wintertoo/data/observing_request_schema.json,sha256=jGRpCT9GYAQr-V0IB1V4_noXvXSxN1fnz6p0fVb8l2s,1585
4
11
  wintertoo/data/summer_fields.txt,sha256=5Sc7MBUacelzaq1KHSLmfAyZ3WB5YifMNwKRjBRBcRk,52684603
5
12
  wintertoo/data/winter_fields.txt,sha256=TxySQTmJXCCgaf-oC1gzOYQb2Vr26KEKdJxqrZHHet0,3529364
6
- wintertoo/database.py,sha256=I-GP76aNmO1KDNbiEdpqsbHLVvTE791QwOqab6I_BHc,3019
7
- wintertoo/errors.py,sha256=iAFcy0z3A3bCnkJmAt_P-77fPaPHFGS1JbrK6O2dCEM,223
8
- wintertoo/fields.py,sha256=AX21FB0-qolcpsRYkIywd16CeX8W023Qq5g3rLmfVEo,5923
9
13
  wintertoo/models/__init__.py,sha256=ZE3R3rCgijStd36IEs620NRP9R18Ay2CvYUZyJQvreA,234
10
14
  wintertoo/models/image.py,sha256=XJmS0HryoeS6YFU9zpI5QPEKh1tC_iIVmsq8638sNlc,2480
11
15
  wintertoo/models/program.py,sha256=VR5F7XfRVVkNp_ztxBTLQCDemTtpKIdefTxPu6gy7LQ,1915
12
16
  wintertoo/models/too.py,sha256=dAK4mT7j3cbO75uo0Z03e0uL78KFLPLVANQFaGExG6o,3825
13
- wintertoo/schedule.py,sha256=epjtIJT8uNbq25lIzUnb0cbE5N4IyyGszK1U4ivz1ew,5447
14
- wintertoo/submit.py,sha256=Wn4ua27pPiZMzYLZQ4fTLnLPSZvh0JZyHlSmFU4jVjA,2296
15
- wintertoo/utils.py,sha256=BWgBZoSX5xfqURb2Nkvf3i6A_IcVYU2SoXFvp6ez7Xc,3306
16
- wintertoo/validate.py,sha256=mCvLN0csh4jBtRwyRGphFakYMVEZwdNqYLWiv6ugdJc,8839
17
- wintertoo-0.3.6.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
18
- wintertoo-0.3.6.dist-info/METADATA,sha256=WiWyCj4RoORAXlvLhI1-FwZVEC1yVxgPYT66MZJ3T70,1795
19
- wintertoo-0.3.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
20
- wintertoo-0.3.6.dist-info/RECORD,,
17
+ wintertoo-0.3.8.dist-info/LICENSE,sha256=1-4yY2S7St-8Koy4JGheNG9QPkwff7831u2JITQ2oQs,1063
18
+ wintertoo-0.3.8.dist-info/METADATA,sha256=DxP4BCw21irMXeMLzqwP5ySfE1fc6h3DO2Y0EGI7_vc,2488
19
+ wintertoo-0.3.8.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
20
+ wintertoo-0.3.8.dist-info/top_level.txt,sha256=6SMjMBzaNrD77erdCiVcRTrPZ-x98SDX43akRjWj4T8,10
21
+ wintertoo-0.3.8.dist-info/RECORD,,
@@ -1,4 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.6.1
2
+ Generator: bdist_wheel (0.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ wintertoo
@@ -1,43 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: wintertoo
3
- Version: 0.3.6
4
- Summary:
5
- Home-page: https://github.com/winter-telescope/wintertoo
6
- Author: Danielle Frostig
7
- Author-email: frostig@mit.edu
8
- Requires-Python: >=3.9.0,<3.12
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Requires-Dist: astroplan (>=0.8)
14
- Requires-Dist: astropy (>=5.2.1)
15
- Requires-Dist: bcrypt (>=4.0.1,<5.0.0)
16
- Requires-Dist: black (>=23.1.0,<24.0.0)
17
- Requires-Dist: coveralls (>=3.3.1)
18
- Requires-Dist: isort (>=5.12.0,<6.0.0)
19
- Requires-Dist: jsonschema (>=4.17.3)
20
- Requires-Dist: matplotlib (>=3.7.0)
21
- Requires-Dist: numpy (>=1.24.2)
22
- Requires-Dist: pandas (>=2.0.2)
23
- Requires-Dist: pre-commit (>=3.2.2)
24
- Requires-Dist: psycopg (>=3.1.8)
25
- Requires-Dist: psycopg-binary (>=3.1.8)
26
- Requires-Dist: pydantic (>=1.10.5)
27
- Requires-Dist: pylint (>=2.16.2,<3.0.0)
28
- Requires-Dist: pytz (>=2022.7.1)
29
- Requires-Dist: sqlalchemy (>=2.0.4)
30
- Description-Content-Type: text/markdown
31
-
32
- # wintertoo
33
- [![PyPI version](https://badge.fury.io/py/wintertoo.svg)](https://badge.fury.io/py/wintertoo)
34
- [![CI](https://github.com/winter-telescope/wintertoo/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/winter-telescope/wintertoo/actions/workflows/continuous_integration.yml)
35
- [![Coverage Status](https://coveralls.io/repos/github/winter-telescope/wintertoo/badge.svg?branch=main)](https://coveralls.io/github/winter-telescope/wintertoo?branch=main)
36
-
37
- General package for Target-of-Opportunity (ToO) observations with the [WINTER observatory](https://github.com/winter-telescope).
38
-
39
- Current functionality includes:
40
- * Converting RA/DEC positions to fields
41
- * Building ToO schedules
42
- * Verifying ToO schedules
43
-