tkmatrix 0.8.4__tar.gz → 0.8.6__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.
Files changed (24) hide show
  1. {tkmatrix-0.8.4/tkmatrix.egg-info → tkmatrix-0.8.6}/PKG-INFO +1 -1
  2. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/setup.py +1 -1
  3. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/custom_algorithms/BlsCustomSearchAlgorithm.py +1 -1
  4. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/properties.yaml +1 -2
  5. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/tkmatrix_class.py +7 -1
  6. {tkmatrix-0.8.4 → tkmatrix-0.8.6/tkmatrix.egg-info}/PKG-INFO +1 -1
  7. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/LICENSE +0 -0
  8. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/MANIFEST.in +0 -0
  9. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/README.md +0 -0
  10. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/setup.cfg +0 -0
  11. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/__init__.py +0 -0
  12. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/__main__.py +0 -0
  13. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/custom_algorithms/__init__.py +0 -0
  14. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/custom_algorithms/custom_search.py +0 -0
  15. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/inject_model.py +0 -0
  16. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/inject_rv_model.py +0 -0
  17. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/programmatic.py +0 -0
  18. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/rv.py +0 -0
  19. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/tests/__init__.py +0 -0
  20. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix/tests/test_tkmatrix.py +0 -0
  21. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix.egg-info/SOURCES.txt +0 -0
  22. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix.egg-info/dependency_links.txt +0 -0
  23. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix.egg-info/requires.txt +0 -0
  24. {tkmatrix-0.8.4 → tkmatrix-0.8.6}/tkmatrix.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tkmatrix
3
- Version: 0.8.4
3
+ Version: 0.8.6
4
4
  Summary: ToolKit for Multi-phAse Transits Recovery from Injected eXoplanets
5
5
  Home-page: https://github.com/PlanetHunters/tkmatrix
6
6
  Author: M. Dévora-Pajares & F.J. Pozuelos
@@ -2,7 +2,7 @@ import setuptools
2
2
 
3
3
  with open("README.md", "r") as fh:
4
4
  long_description = fh.read()
5
- version = "0.8.4"
5
+ version = "0.8.6"
6
6
  setuptools.setup(
7
7
  name="tkmatrix",
8
8
  version=version,
@@ -42,7 +42,7 @@ class BlsCustomSearchAlgorithm(CustomSearchAlgorithm):
42
42
  oversampling, star_info,
43
43
  transits_min_count)
44
44
  lc = lightkurve.LightCurve(time=time, flux=flux)
45
- results = lc.to_periodogram(method='bls', period=tls_period_grid, frequency_factor=oversampling)
45
+ results = lc.to_periodogram(method='bls', period=tls_period_grid, frequency_factor=oversampling * 100)
46
46
  max_power_index = np.argmax(results.power)
47
47
  sde = results.power[max_power_index].value / np.nanmedian(results.power).value
48
48
  t0 = results.transit_time_at_max_power.value
@@ -53,8 +53,7 @@ SIGNAL_SELECTION_MODE: 'period-epoch'
53
53
  # The SNR limit for a TLS found signal to be considered as not recovered.
54
54
  SNR_THRESHOLD: 5
55
55
  # The density of the period grid for the TLS search. Increasing this will enhance the TLS accuracy sometimes but it
56
- # adds a high increase of computational cost. When FIT_METHOD: bls-periodogram, OVERSAMPLING represents the
57
- # frequency_factor and hence, increasing it will reduce the period grid size (as opposite to the standard search).
56
+ # adds a high increase of computational cost.
58
57
  OVERSAMPLING: 1
59
58
  # An array of time tuples to be masked in your curve. E.g: [[1401.25, 1401.60], [1415.2, 1416.0]]
60
59
  INITIAL_MASK:
@@ -498,7 +498,7 @@ class MATRIX:
498
498
 
499
499
  @staticmethod
500
500
  def plot_results(object_id, inject_dir, period_grid=None, radius_grid=None, binning=1, xticks=None, yticks=None,
501
- period_grid_geom="lin", radius_grid_geom="lin", is_rv=False):
501
+ period_grid_geom="lin", radius_grid_geom="lin", is_rv=False, planets_df=None):
502
502
  """
503
503
  Generates a heat map with the found/not found results for the period/radius grids
504
504
 
@@ -512,6 +512,7 @@ class MATRIX:
512
512
  :param period_grid_geom: [lin|log]
513
513
  :param radius_grid_geom: [lin|log]
514
514
  :param is_rv: whether to load the rv results or the photometry ones
515
+ :param planets_df: pandas dataframe with radius, period, name, radius_err_up, radius_err_bottom
515
516
  """
516
517
  filename = '/a_tls_report.csv' if not is_rv else '/a_rv_report.csv'
517
518
  column = 'radius' if not is_rv else 'mass'
@@ -570,6 +571,11 @@ class MATRIX:
570
571
  if yticks is not None:
571
572
  plt.xticks(yticks)
572
573
  ax.tick_params(axis='both', which='major', labelsize=14)
574
+ if planets_df is not None:
575
+ for index, row in planets_df.iterrows():
576
+ ax.errorbar([row['period']], [row['radius']],
577
+ yerr=[np.full(1, row['radius_err_bottom']), np.full(1, row['radius_err_up'])],
578
+ fmt='o', color='firebrick', markersize=12)
573
579
  plt.savefig(inject_dir + '/inj-rec' + ('-rv' if is_rv else '') + '.png', bbox_inches='tight', dpi=200)
574
580
  plt.close()
575
581
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tkmatrix
3
- Version: 0.8.4
3
+ Version: 0.8.6
4
4
  Summary: ToolKit for Multi-phAse Transits Recovery from Injected eXoplanets
5
5
  Home-page: https://github.com/PlanetHunters/tkmatrix
6
6
  Author: M. Dévora-Pajares & F.J. Pozuelos
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes