tkmatrix 0.8.2__tar.gz → 0.8.4__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.2/tkmatrix.egg-info → tkmatrix-0.8.4}/PKG-INFO +1 -1
  2. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/setup.py +2 -2
  3. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/custom_algorithms/BlsCustomSearchAlgorithm.py +1 -1
  4. tkmatrix-0.8.4/tkmatrix/programmatic.py +109 -0
  5. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/properties.yaml +3 -2
  6. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/tests/test_tkmatrix.py +18 -18
  7. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/tkmatrix_class.py +20 -14
  8. {tkmatrix-0.8.2 → tkmatrix-0.8.4/tkmatrix.egg-info}/PKG-INFO +1 -1
  9. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix.egg-info/SOURCES.txt +1 -0
  10. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix.egg-info/requires.txt +1 -1
  11. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/LICENSE +0 -0
  12. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/MANIFEST.in +0 -0
  13. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/README.md +0 -0
  14. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/setup.cfg +0 -0
  15. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/__init__.py +0 -0
  16. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/__main__.py +0 -0
  17. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/custom_algorithms/__init__.py +0 -0
  18. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/custom_algorithms/custom_search.py +0 -0
  19. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/inject_model.py +0 -0
  20. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/inject_rv_model.py +0 -0
  21. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/rv.py +0 -0
  22. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix/tests/__init__.py +0 -0
  23. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/tkmatrix.egg-info/dependency_links.txt +0 -0
  24. {tkmatrix-0.8.2 → tkmatrix-0.8.4}/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.2
3
+ Version: 0.8.4
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.2"
5
+ version = "0.8.4"
6
6
  setuptools.setup(
7
7
  name="tkmatrix",
8
8
  version=version,
@@ -25,7 +25,7 @@ setuptools.setup(
25
25
  'configparser==5.0.1',
26
26
  "corner==2.1.0",
27
27
  "ellc==1.8.5",
28
- "lcbuilder==0.16.1",
28
+ "lcbuilder==0.16.2",
29
29
  "mock==4.0.3",
30
30
  'pyparsing==2.4.7', # Matplotlib dependency
31
31
  "seaborn==0.11.1",
@@ -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)
45
+ results = lc.to_periodogram(method='bls', period=tls_period_grid, frequency_factor=oversampling)
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
@@ -0,0 +1,109 @@
1
+ import os
2
+
3
+ from lcbuilder.star.starinfo import StarInfo
4
+
5
+ from tkmatrix.tkmatrix_class import MATRIX
6
+
7
+ matrix_user_properties = {}
8
+ matrix_user_properties['TARGET'] = "KIC 11615498"
9
+ star_properties = {}
10
+ star_properties['MASS'] = 1.977
11
+ star_properties['MASS_LOWER_ERROR'] = 0.062
12
+ star_properties['MASS_UPPER_ERROR'] = 0.062
13
+ star_properties['RADIUS'] = 9.863
14
+ star_properties['RADIUS_LOWER_ERROR'] = 0.015
15
+ star_properties['RADIUS_UPPER_ERROR'] = 0.015
16
+ star_properties['TEFF'] = 4978.6
17
+ star_properties['LD_COEFFICIENTS'] = [0.4356, 0.2367]
18
+ star_info = StarInfo(matrix_user_properties['TARGET'],
19
+ tuple(star_properties["LD_COEFFICIENTS"]) if "LD_COEFFICIENTS" in star_properties else None,
20
+ star_properties["TEFF"] if "TEFF" in star_properties else None,
21
+ star_properties["LUM"] if "LUM" in star_properties else None,
22
+ star_properties["LOGG"] if "LOGG" in star_properties else None,
23
+ star_properties["LOGG_ERR"] if "LOGG_ERR" in star_properties else None,
24
+ star_properties["RADIUS"] if "RADIUS" in star_properties else None,
25
+ star_properties["RADIUS_LOWER_ERROR"] if "RADIUS_LOWER_ERROR" in star_properties else None,
26
+ star_properties["RADIUS_UPPER_ERROR"] if "RADIUS_UPPER_ERROR" in star_properties else None,
27
+ star_properties["MASS"] if "MASS" in star_properties else None,
28
+ star_properties["MASS_LOWER_ERROR"] if "MASS_LOWER_ERROR" in star_properties else None,
29
+ star_properties["MASS_UPPER_ERROR"] if "MASS_UPPER_ERROR" in star_properties else None,
30
+ star_properties["RA"] if "RA" in star_properties else None,
31
+ star_properties["DEC"] if "DEC" in star_properties else None)
32
+ matrix_user_properties['SECTORS'] = 'all'
33
+ matrix_user_properties['PERIOD_GRID'] = None
34
+ matrix_user_properties['RADIUS_GRID'] = None
35
+ matrix_user_properties['PERIOD_GRID_GEOM'] = 'lin'
36
+ matrix_user_properties['RADIUS_GRID_GEOM'] = 'lin'
37
+ matrix_user_properties['PHASES'] = 2
38
+ matrix_user_properties["CPUS"] = os.cpu_count() - 1
39
+ matrix_user_properties['MIN_PERIOD'] = 4
40
+ matrix_user_properties['MAX_PERIOD'] = 20
41
+ matrix_user_properties['MIN_PERIOD_SEARCH'] = 0.5
42
+ matrix_user_properties['MAX_PERIOD_SEARCH'] = 40
43
+ matrix_user_properties['STEPS_PERIOD'] = 2
44
+ matrix_user_properties['MIN_RADIUS'] = 4
45
+ matrix_user_properties['MAX_RADIUS'] = 22
46
+ matrix_user_properties['STEPS_RADIUS'] = 2
47
+ matrix_user_properties['PHASES'] = 2
48
+ matrix_user_properties['DETREND_WS'] = 3.5
49
+ matrix_user_properties['OVERSAMPLING'] = 1
50
+ matrix_user_properties['SIGNAL_SELECTION_MODE'] = 'period'
51
+ matrix_user_properties['FIT_METHOD'] = 'bls-periodogram'
52
+ matrix_user_properties['SNR_THRESHOLD'] = 5
53
+ matrix_user_properties['USE_SEARCH_CACHE'] = True
54
+ matrix_user_properties['DETREND_METHOD'] = 'biweight'
55
+ matrix_user_properties['RUN_LIMIT'] = 2
56
+ target = matrix_user_properties["TARGET"]
57
+ file = None
58
+ author = None
59
+ custom_search = None
60
+ prepare_algorithm = None
61
+ initial_mask = None
62
+ initial_smooth_enabled = False
63
+ initial_transit_mask = None
64
+ auto_detrend_period = None
65
+ auto_detrend_ratio = 1
66
+ auto_detrend_method = 'biweight'
67
+ auto_detrend_enabled = False
68
+ oscillation_reduction = False
69
+ oscillation_min_snr = 3
70
+ oscillation_amplitude_threshold = 0.1
71
+ oscillation_ws_percent = 60
72
+ oscillation_min_period = 0.0006875
73
+ oscillation_max_period = 0.25
74
+ high_rms_bin_hours = 4
75
+ high_rms_threshold = 3
76
+ high_rms_enabled = False
77
+ outliers_sigma = 3
78
+ exptime = 1800
79
+ eleanor_corr_flux = "pca_flux"
80
+ cache_dir = None
81
+ if cache_dir is None:
82
+ cache_dir = os.path.expanduser('~') + "/"
83
+ search_engine = 'cpu'
84
+ run_dir = './'
85
+ ir = MATRIX(target, matrix_user_properties["SECTORS"], author, run_dir, False, star_info, file, exptime,
86
+ initial_mask, initial_transit_mask, eleanor_corr_flux, outliers_sigma, high_rms_enabled,
87
+ high_rms_threshold, high_rms_bin_hours, initial_smooth_enabled, auto_detrend_enabled,
88
+ auto_detrend_method, auto_detrend_ratio, auto_detrend_period, prepare_algorithm, cache_dir,
89
+ oscillation_reduction, oscillation_min_snr, oscillation_amplitude_threshold, oscillation_ws_percent,
90
+ oscillation_min_period, oscillation_max_period, matrix_user_properties["CPUS"],
91
+ search_engine=search_engine)
92
+ inject_dir = None
93
+ inject_dir, period_grid, radius_grid = ir.inject(matrix_user_properties["PHASES"],
94
+ matrix_user_properties["MIN_PERIOD"], matrix_user_properties["MAX_PERIOD"],
95
+ matrix_user_properties["STEPS_PERIOD"],
96
+ matrix_user_properties["MIN_RADIUS"], matrix_user_properties["MAX_RADIUS"],
97
+ matrix_user_properties["STEPS_RADIUS"],
98
+ period_grid=matrix_user_properties['PERIOD_GRID'],
99
+ radius_grid=matrix_user_properties['RADIUS_GRID'],
100
+ period_grid_geom=matrix_user_properties["PERIOD_GRID_GEOM"],
101
+ radius_grid_geom=matrix_user_properties["RADIUS_GRID_GEOM"],
102
+ inject_dir=inject_dir)
103
+ ir.recovery(inject_dir, matrix_user_properties["SNR_THRESHOLD"],
104
+ matrix_user_properties["DETREND_METHOD"],
105
+ matrix_user_properties["DETREND_WS"], matrix_user_properties["FIT_METHOD"],
106
+ matrix_user_properties["RUN_LIMIT"],
107
+ None, matrix_user_properties["MAX_PERIOD_SEARCH"], matrix_user_properties["OVERSAMPLING"],
108
+ matrix_user_properties["SIGNAL_SELECTION_MODE"],
109
+ use_search_cache=matrix_user_properties["USE_SEARCH_CACHE"])
@@ -44,7 +44,7 @@ DETREND_METHOD: "biweight"
44
44
  DETREND_WS: 0
45
45
  # Number of CPU processes to be used
46
46
  CPUS:
47
- # Fit method to be used. [tls|bls|grazing]
47
+ # Fit method to be used. [tls|bls|grazing|bls-periodogram]
48
48
  FIT_METHOD: 'tls'
49
49
  # The number of TLS search trials to be run for each period & radius & epoch before considering as not recovered.
50
50
  RUN_LIMIT: 2
@@ -53,7 +53,8 @@ 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.
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).
57
58
  OVERSAMPLING: 1
58
59
  # An array of time tuples to be masked in your curve. E.g: [[1401.25, 1401.60], [1415.2, 1416.0]]
59
60
  INITIAL_MASK:
@@ -16,26 +16,26 @@ class TestsMatrix(unittest.TestCase):
16
16
  inject_dir = None
17
17
  try:
18
18
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5, 1, 3, 3, 1)
19
- self.assertEquals(10, len(os.listdir(inject_dir)))
20
- self.assertEquals([1], matrix.sectors)
19
+ self.assertEqual(10, len(os.listdir(inject_dir)))
20
+ self.assertEqual([1], matrix.sectors)
21
21
  self.assertAlmostEqual(0.47, matrix.mass, 2)
22
22
  self.assertAlmostEqual(0.44, matrix.massmin, 2)
23
23
  self.assertAlmostEqual(0.5, matrix.massmax, 2)
24
24
  self.assertAlmostEqual(0.18, matrix.radius, 2)
25
25
  self.assertAlmostEqual(0.076, matrix.radiusmin, 3)
26
26
  self.assertAlmostEqual(0.284, matrix.radiusmax, 3)
27
- self.assertEquals("TIC 220513363", matrix.object_info.mission_id())
28
- self.assertEquals("TIC 220513363", matrix.id)
27
+ self.assertEqual("TIC 220513363", matrix.object_info.mission_id())
28
+ self.assertEqual("TIC 220513363", matrix.id)
29
29
  self.assertAlmostEqual(0.47, matrix.mstar.value, 2)
30
30
  self.assertAlmostEqual(0.44, matrix.mstar_min.value, 2)
31
31
  self.assertAlmostEqual(0.5, matrix.mstar_max.value, 2)
32
32
  self.assertAlmostEqual(0.18, matrix.rstar.value, 2)
33
33
  self.assertAlmostEqual(0.076, matrix.rstar_min.value, 3)
34
34
  self.assertAlmostEqual(0.284, matrix.rstar_max.value, 3)
35
- self.assertEquals(".", matrix.dir)
35
+ self.assertEqual(".", matrix.dir)
36
36
  matrix.recovery(inject_dir, 5, detrend_ws=0, oversampling=0.1)
37
37
  matrix.plot_results(target, inject_dir)
38
- self.assertEquals(9, len(os.listdir(inject_dir)))
38
+ self.assertEqual(9, len(os.listdir(inject_dir)))
39
39
  finally:
40
40
  if inject_dir is not None:
41
41
  shutil.rmtree(inject_dir, ignore_errors=True)
@@ -48,7 +48,7 @@ class TestsMatrix(unittest.TestCase):
48
48
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5, 1, 3, 3, 1)
49
49
  matrix.recovery(inject_dir, 5, detrend_ws=0, oversampling=0.1)
50
50
  matrix.plot_results(target, inject_dir)
51
- self.assertEquals(10, len(os.listdir(inject_dir)))
51
+ self.assertEqual(10, len(os.listdir(inject_dir)))
52
52
  finally:
53
53
  if inject_dir is not None:
54
54
  shutil.rmtree(inject_dir, ignore_errors=True)
@@ -59,7 +59,7 @@ class TestsMatrix(unittest.TestCase):
59
59
  inject_dir = None
60
60
  try:
61
61
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5.1, 2, 3, 3.1, 2)
62
- self.assertEquals(13, len(os.listdir(inject_dir)))
62
+ self.assertEqual(13, len(os.listdir(inject_dir)))
63
63
  finally:
64
64
  if inject_dir is not None:
65
65
  shutil.rmtree(inject_dir, ignore_errors=True)
@@ -70,7 +70,7 @@ class TestsMatrix(unittest.TestCase):
70
70
  inject_dir = None
71
71
  try:
72
72
  inject_dir, period_grid, radius_grid = matrix.inject(2, 5, 5, 1, 3, 3, 1)
73
- self.assertEquals(11, len(os.listdir(inject_dir)))
73
+ self.assertEqual(11, len(os.listdir(inject_dir)))
74
74
  finally:
75
75
  if inject_dir is not None:
76
76
  shutil.rmtree(inject_dir, ignore_errors=True)
@@ -135,9 +135,9 @@ class TestsMatrix(unittest.TestCase):
135
135
  inject_dir = None
136
136
  try:
137
137
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5, 1, 3, 3, 1)
138
- self.assertEquals(10, len(os.listdir(inject_dir)))
139
- self.assertEquals((0.2, 0.5), matrix.star_info.ld_coefficients)
140
- self.assertEquals(2000, matrix.star_info.teff)
138
+ self.assertEqual(10, len(os.listdir(inject_dir)))
139
+ self.assertEqual((0.2, 0.5), matrix.star_info.ld_coefficients)
140
+ self.assertEqual(2000, matrix.star_info.teff)
141
141
  self.assertAlmostEqual(0.7, matrix.star_info.mass)
142
142
  self.assertAlmostEqual(0.55, matrix.star_info.mass_min)
143
143
  self.assertAlmostEqual(0.75, matrix.star_info.mass_max)
@@ -151,9 +151,9 @@ class TestsMatrix(unittest.TestCase):
151
151
  inject_dir = None
152
152
  try:
153
153
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5, 1, 3, 3, 1)
154
- self.assertEquals(10, len(os.listdir(inject_dir)))
155
- self.assertEquals((0.1258, 0.235), matrix.star_info.ld_coefficients)
156
- self.assertEquals(31000.0, matrix.star_info.teff)
154
+ self.assertEqual(10, len(os.listdir(inject_dir)))
155
+ self.assertEqual((0.1258, 0.235), matrix.star_info.ld_coefficients)
156
+ self.assertEqual(31000.0, matrix.star_info.teff)
157
157
  self.assertAlmostEqual(0.47, matrix.star_info.mass)
158
158
  self.assertAlmostEqual(0.44, matrix.star_info.mass_min)
159
159
  self.assertAlmostEqual(0.5, matrix.star_info.mass_max)
@@ -173,9 +173,9 @@ class TestsMatrix(unittest.TestCase):
173
173
  try:
174
174
  inject_dir, period_grid, radius_grid = matrix.inject(1, 5, 5.1, 2, 3, 3.1, 2, period_grid=period_grid_expected,
175
175
  radius_grid=radius_grid_expected)
176
- self.assertEquals(29, len(os.listdir(inject_dir)))
177
- self.assertEquals(period_grid_expected, period_grid)
178
- self.assertEquals(radius_grid_expected, radius_grid)
176
+ self.assertEqual(29, len(os.listdir(inject_dir)))
177
+ self.assertEqual(period_grid_expected, period_grid)
178
+ self.assertEqual(radius_grid_expected, radius_grid)
179
179
  finally:
180
180
  if inject_dir is not None:
181
181
  shutil.rmtree(inject_dir, ignore_errors=True)
@@ -450,12 +450,12 @@ class MATRIX:
450
450
  oversampling, signal_selection_mode)
451
451
  else:
452
452
  founds = [True]
453
- snrs = [float(found_entries.iloc[0]['snr'])]
454
- sdes = [float(found_entries.iloc[0]['sde'])]
455
- runs = [int(found_entries.iloc[0]['run'])]
456
- durations_found = [float(found_entries.iloc[0]['duration_found'])]
457
- periods_found = [float(found_entries.iloc[0]['period_found'])]
458
- epochs_found = [float(found_entries.iloc[0]['epoch_found'])]
453
+ snrs = [float(str(found_entries.iloc[0]['snr']).split(',')[-1])]
454
+ sdes = [float(str(found_entries.iloc[0]['sde']).split(',')[-1])]
455
+ runs = [int(str(found_entries.iloc[0]['run']).split(',')[-1])]
456
+ durations_found = [float(str(found_entries.iloc[0]['duration_found']).split(',')[-1])]
457
+ periods_found = [float(str(found_entries.iloc[0]['period_found']).split(',')[-1])]
458
+ epochs_found = [float(str(found_entries.iloc[0]['epoch_found']).split(',')[-1])]
459
459
  new_report = {"period": period, "radius": r_planet, "epoch": epoch,
460
460
  "found": founds[-1], "snr": ','.join([str(i) for i in snrs]),
461
461
  "sde": ','.join([str(i) for i in sdes]), "run": ','.join([str(i) for i in runs]),
@@ -554,10 +554,12 @@ class MATRIX:
554
554
  fig, ax = plt.subplots(figsize=(2.7 * 5, 5))
555
555
  im = plt.imshow(normed_hist.T, origin='lower', extent=(x[0], x[-1], y[0], y[-1]), interpolation='none',
556
556
  aspect='auto', cmap='viridis', vmin=0, vmax=100, rasterized=True)
557
- plt.colorbar(im, label='Recovery rate (%)')
558
- plt.xlabel('Injected period (days)')
559
- plt.ylabel(r'Injected ' + 'radius' if not is_rv else 'mass' + ' (' + column_units + '$_\oplus$)')
560
- ax.set_title(object_id + " - I&R (" + str(phases) + " " + phases_str + ")")
557
+ cbar = plt.colorbar(im)
558
+ cbar.set_label(label='Recovery rate (%)', size=16)
559
+ cbar.ax.tick_params(labelsize=14)
560
+ plt.xlabel('Injected period (days)', fontsize=18)
561
+ plt.ylabel(r'Injected ' + ('radius' if not is_rv else 'mass') + ' (' + column_units + '$_\oplus$)', fontsize=18)
562
+ ax.set_title(object_id + " - I&R (" + str(phases) + " " + phases_str + ")", fontsize=24)
561
563
  if xticks is not None:
562
564
  plt.xticks(xticks)
563
565
  else:
@@ -567,6 +569,7 @@ class MATRIX:
567
569
  ax.xaxis.set_major_formatter(FormatStrFormatter('%.' + str(period_ticks_decimals) + 'f'))
568
570
  if yticks is not None:
569
571
  plt.xticks(yticks)
572
+ ax.tick_params(axis='both', which='major', labelsize=14)
570
573
  plt.savefig(inject_dir + '/inj-rec' + ('-rv' if is_rv else '') + '.png', bbox_inches='tight', dpi=200)
571
574
  plt.close()
572
575
 
@@ -630,10 +633,12 @@ class MATRIX:
630
633
  fig, ax = plt.subplots(figsize=(2.7 * 5, 5))
631
634
  im = plt.imshow(normed_hist.T, origin='lower', extent=(x1[0], x1[-1], y1[0], y1[-1]), interpolation='none',
632
635
  aspect='auto', cmap='viridis', vmin=-phases, vmax=phases, rasterized=True)
633
- plt.colorbar(im, label='# Found samples diff.')
634
- plt.xlabel('Injected period (days)')
635
- plt.ylabel(r'Injected radius (R$_\oplus$)')
636
- ax.set_title(object_id + " - P/R recovery diff(" + str(phases) + " " + phases_str + ")")
636
+ cbar = plt.colorbar(im)
637
+ cbar.set_label(label='# Found samples diff.', size=16)
638
+ cbar.ax.tick_params(labelsize=14)
639
+ plt.xlabel('Injected period (days)', fontsize=18)
640
+ plt.ylabel(r'Injected radius (R$_\oplus$)', fontsize=18)
641
+ ax.set_title(object_id + " - P/R recovery diff(" + str(phases) + " " + phases_str + ")", fontsize=24)
637
642
  if xticks is not None:
638
643
  plt.xticks(xticks)
639
644
  else:
@@ -643,6 +648,7 @@ class MATRIX:
643
648
  ax.xaxis.set_major_formatter(FormatStrFormatter('%.' + str(period_ticks_decimals) + 'f'))
644
649
  if yticks is not None:
645
650
  plt.xticks(yticks)
651
+ ax.tick_params(axis='both', which='major', labelsize=14)
646
652
  plt.savefig(output_dir + '/inj-rec-diff.png', bbox_inches='tight', dpi=200)
647
653
  plt.close()
648
654
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tkmatrix
3
- Version: 0.8.2
3
+ Version: 0.8.4
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
@@ -6,6 +6,7 @@ tkmatrix/__init__.py
6
6
  tkmatrix/__main__.py
7
7
  tkmatrix/inject_model.py
8
8
  tkmatrix/inject_rv_model.py
9
+ tkmatrix/programmatic.py
9
10
  tkmatrix/properties.yaml
10
11
  tkmatrix/rv.py
11
12
  tkmatrix/tkmatrix_class.py
@@ -3,7 +3,7 @@ beautifulsoup4==4.9.3
3
3
  configparser==5.0.1
4
4
  corner==2.1.0
5
5
  ellc==1.8.5
6
- lcbuilder==0.16.1
6
+ lcbuilder==0.16.2
7
7
  mock==4.0.3
8
8
  pyparsing==2.4.7
9
9
  seaborn==0.11.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes