timewise 0.3.1__tar.gz → 0.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: timewise
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A small package to download infrared data from the WISE satellite
5
5
  Home-page: https://github.com/JannisNe/timewise
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "timewise"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  description = "A small package to download infrared data from the WISE satellite"
5
5
  authors = ["Jannis Necker <jannis.necker@gmail.com>"]
6
6
  license = "MIT"
@@ -327,12 +327,19 @@ class WiseDataByVisit(WISEDataBase):
327
327
  metadata[Nk] = len(ilc)
328
328
 
329
329
  if len(ilc) > 0:
330
- metadata[mean_weighted_ppb_key] = np.average(ilc[llumkey], weights=ilc[ppb_key])
331
- metadata[excess_variance_key], metadata[excess_variance_err_key] = get_excess_variance(
332
- np.array(ilc[llumkey]),
333
- np.array(ilc[errkey]),
334
- np.array(metadata[mean_weighted_ppb_key])
335
- )
330
+ # check if ppb sum to more than zero
331
+ if sum(ilc[ppb_key]) > 0:
332
+ metadata[mean_weighted_ppb_key] = np.average(ilc[llumkey], weights=ilc[ppb_key])
333
+ metadata[excess_variance_key], metadata[excess_variance_err_key] = get_excess_variance(
334
+ np.array(ilc[llumkey]),
335
+ np.array(ilc[errkey]),
336
+ np.array(metadata[mean_weighted_ppb_key])
337
+ )
338
+
339
+ # if not we can not calculate the excess variance
340
+ else:
341
+ for k in [mean_weighted_ppb_key, excess_variance_key, excess_variance_err_key]:
342
+ metadata[k] = np.nan
336
343
 
337
344
  imin = ilc[llumkey].min()
338
345
  imax = ilc[llumkey].max()
timewise-0.3.1/setup.py DELETED
@@ -1,43 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['timewise']
6
-
7
- package_data = \
8
- {'': ['*']}
9
-
10
- install_requires = \
11
- ['astropy>=5.1,<6.0',
12
- 'backoff>=2.1.2,<3.0.0',
13
- 'coveralls>=3.3.1,<4.0.0',
14
- 'furo>=2022.6.21,<2023.0.0',
15
- 'matplotlib>=3.5.3,<4.0.0',
16
- 'myst-parser>=0.18.0,<0.19.0',
17
- 'numpy>=1.23.2,<2.0.0',
18
- 'pandas>=1.4.3,<2.0.0',
19
- 'pyvo>=1.3,<2.0',
20
- 'requests>=2.28.1,<3.0.0',
21
- 'scikit-image>=0.19.3,<0.20.0',
22
- 'seaborn>=0.11.2,<0.13.0',
23
- 'tqdm>=4.64.0,<5.0.0',
24
- 'virtualenv>=20.16.3,<21.0.0']
25
-
26
- setup_kwargs = {
27
- 'name': 'timewise',
28
- 'version': '0.3.1',
29
- 'description': 'A small package to download infrared data from the WISE satellite',
30
- 'long_description': "[![CI](https://github.com/JannisNe/timewise/actions/workflows/continous_integration.yml/badge.svg)](https://github.com/JannisNe/timewise/actions/workflows/continous_integration.yml)\n[![Coverage Status](https://coveralls.io/repos/github/JannisNe/timewise/badge.svg?branch=main)](https://coveralls.io/github/JannisNe/timewise?branch=main)\n[![PyPI version](https://badge.fury.io/py/timewise.svg)](https://badge.fury.io/py/timewise)\n[![Documentation Status](https://readthedocs.org/projects/timewise/badge/?version=latest)](https://timewise.readthedocs.io/en/latest/?badge=latest)\n[![DOI](https://zenodo.org/badge/449677569.svg)](https://zenodo.org/badge/latestdoi/449677569)\n\n\n\n# `timewise` is great, love it!\nDownload infrared lightcurves recorded with the WISE satellite.\n\n## Installation\n\n`timewise` is a python package, installable through `pip`\n```\npip install timewise\n```\n\nIf you would like to contribute just clone the repository. Easy.\n\n\n## Dependencies\n\nAll dependencies are listed in `requirements.txt`. If installing with `pip` they will automatically installed.\nOtherwise you can install them with `pip install -r requirements.txt`.\n\nThere is one package that does not obey! It's `SciServer`! \nIt's used to access SDSS data and plot cutouts. If you want to use this functionality \ninstall [this](https://github.com/sciserver/SciScript-Python) and create an account [here](https://www.sciserver.org).\nAs soon as required you will be required to enter your username and password.\n\n\n## Testing\n You can verify that everything is working (because this package is flawless and works everywhere.) by executing\n the unittest\n```\npython -m unittest discover tests/\n```\n\n## Cite\nIf you you `timewise` please cite [this](https://zenodo.org/badge/latestdoi/449677569).\n\n## Usage\nDetailed documentation can be found [here](https://timewise.readthedocs.io/en/latest/)\n",
31
- 'author': 'Jannis Necker',
32
- 'author_email': 'jannis.necker@gmail.com',
33
- 'maintainer': 'None',
34
- 'maintainer_email': 'None',
35
- 'url': 'https://github.com/JannisNe/timewise',
36
- 'packages': packages,
37
- 'package_data': package_data,
38
- 'install_requires': install_requires,
39
- 'python_requires': '>=3.8,<3.12',
40
- }
41
-
42
-
43
- setup(**setup_kwargs)
File without changes
File without changes
File without changes
File without changes
File without changes