tessapps 0.3.2__tar.gz → 0.3.3__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.5
2
2
  Name: tessapps
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: TESS Aperture Photometry Pollution eStimator
5
5
  Author: Leonidas Liponis
6
6
  Requires-Python: >=3.10
@@ -39,7 +39,7 @@ Full documentation is available [here](https://codeberg.org/leolip128/tessapps/s
39
39
  - ```scipy``` (>=1.7.2): to integrate the gaussian function
40
40
  - ```astropy``` (>=5.0): to build data used in this module
41
41
  - ```astroquery``` (>=0.4.6): to find stars in the target's region
42
- - ```matplotlib``` (>=3.5): to plot the result (shows aperture mask with a caption at the bottom)
42
+ - ```matplotlib``` (>=3.5): to plot the result (image above)
43
43
  - ```lightkurve``` (>=2.0): to fetch and load tpf files
44
44
 
45
45
  Python >=3.10 is required. More information about dependencies can be found [here](https://codeberg.org/leolip128/tessapps/src/branch/main/documentation/installation/README.md).
@@ -20,7 +20,7 @@ Full documentation is available [here](https://codeberg.org/leolip128/tessapps/s
20
20
  - ```scipy``` (>=1.7.2): to integrate the gaussian function
21
21
  - ```astropy``` (>=5.0): to build data used in this module
22
22
  - ```astroquery``` (>=0.4.6): to find stars in the target's region
23
- - ```matplotlib``` (>=3.5): to plot the result (shows aperture mask with a caption at the bottom)
23
+ - ```matplotlib``` (>=3.5): to plot the result (image above)
24
24
  - ```lightkurve``` (>=2.0): to fetch and load tpf files
25
25
 
26
26
  Python >=3.10 is required. More information about dependencies can be found [here](https://codeberg.org/leolip128/tessapps/src/branch/main/documentation/installation/README.md).
@@ -13,7 +13,7 @@ requires-python = ">=3.10"
13
13
  dependencies = ["numpy>=1.21.2", "scipy>=1.7.2", "astropy>=5.0", "astroquery>=0.4.6", "matplotlib>=3.5", "lightkurve>=2.0"]
14
14
 
15
15
  [tool.bumpversion]
16
- current_version = "0.3.2"
16
+ current_version = "0.3.3"
17
17
  commit = false
18
18
  tag = false
19
19
  allow_dirty = true
@@ -2,5 +2,5 @@
2
2
 
3
3
  from tessapps.main import run
4
4
 
5
- __version__ = "0.3.2"
5
+ __version__ = "0.3.3"
6
6
  __all__ = ["run"]
@@ -7,7 +7,7 @@ warnings.filterwarnings("ignore", message=".*Cannot download from an empty searc
7
7
  import lightkurve as lk
8
8
  import numpy as np
9
9
  from scipy import integrate
10
- import matplotlib as plt
10
+ import matplotlib.pyplot as plt
11
11
  import astropy.units as u
12
12
  from astropy.table import Table
13
13
  from astropy.time import Time
@@ -29,7 +29,7 @@ def run(tpf=None, pixel_overshoot=1, sigma=1, digits=3, search_info=False, resul
29
29
  stars = ttns.tpf_to_nearby_stars(tpf, pixel_overshoot, search_info)
30
30
  data = tnsd.data_builder(tpf, stars)
31
31
  contamination_factor, contamination_error = tdc.contribution_calculator(tpf, data, sigma, digits, result)
32
-
32
+ contamination_factor, contamination_error = np.round(contamination_factor, digits), np.round(contamination_error, digits)
33
33
  # print(data[:6])
34
34
 
35
35
  if plot:
@@ -42,7 +42,7 @@ def run(tpf=None, pixel_overshoot=1, sigma=1, digits=3, search_info=False, resul
42
42
  out_path.parent.mkdir(parents=True, exist_ok=True)
43
43
  fig.savefig(out_path, dpi=200, bbox_inches="tight")
44
44
  plt.show
45
- return [float(contamination_factor), float(contamination_error)]
45
+ return [np.round(contamination_factor, digits), np.round(contamination_error, digits)]
46
46
 
47
47
  def main(argv=None):
48
48
  parser = ArgumentParser() # prog="tapps" could be set for logs (consistency)
File without changes