Skip to content

Commit

Permalink
fixed the directory for pytest references
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbinks committed Mar 1, 2024
1 parent 0df245d commit 1db4746
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 12 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file modified tessilator/tests/test_aic_flat_with_err.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tessilator/tests/test_aic_linear_with_err.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tessilator/tests/test_aic_parabola_with_err.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions tessilator/tests/test_clean_lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@
from astropy.table import Table
from astropy.io import ascii

aps = ['./targets_tests/Gaia_DR3_2314778985026776320_tests/ap_2314778985026776320_0029_1_2.csv',
'./targets_tests/BD+20_2465_tests/ap_BD+20_2465_0045_3_4.csv',
'./targets_tests/GESJ08065664-4703000_tests/ap_GESJ08065664-4703000_0061_3_1.csv',
'./targets_tests/ABDor_tests/ap_AB_Dor_0036_4_3.csv']
lcs = ['./targets_tests/Gaia_DR3_2314778985026776320_tests/lc_2314778985026776320_0029_1_2_reg_oflux.csv',
'./targets_tests/BD+20_2465_tests/lc_BD+20_2465_0045_3_4_reg_oflux.csv',
'./targets_tests/GESJ08065664-4703000_tests/lc_GESJ08065664-4703000_0061_3_1_reg_oflux.csv',
'./targets_tests/ABDor_tests/lc_AB_Dor_0036_4_3_reg_oflux.csv']
targ_dir = './tessilator/tests/targets_tests'

aps = [f'{targ_dir}/Gaia_DR3_2314778985026776320_tests/ap_2314778985026776320_0029_1_2.csv',
f'{targ_dir}/BD+20_2465_tests/ap_BD+20_2465_0045_3_4.csv',
f'{targ_dir}/GESJ08065664-4703000_tests/ap_GESJ08065664-4703000_0061_3_1.csv',
f'{targ_dir}/ABDor_tests/ap_AB_Dor_0036_4_3.csv']
lcs = [f'{targ_dir}/Gaia_DR3_2314778985026776320_tests/lc_2314778985026776320_0029_1_2_reg_oflux.csv',
f'{targ_dir}/BD+20_2465_tests/lc_BD+20_2465_0045_3_4_reg_oflux.csv',
f'{targ_dir}/GESJ08065664-4703000_tests/lc_GESJ08065664-4703000_0061_3_1_reg_oflux.csv',
f'{targ_dir}/ABDor_tests/lc_AB_Dor_0036_4_3_reg_oflux.csv']

for ap_file, lc_file in zip(aps, lcs):
ap_in = ascii.read(ap_file)
Expand Down
10 changes: 6 additions & 4 deletions tessilator/tests/test_periodogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ def test_multi_peak_fit():
assert((LS_dict[f'period_{i+1}']/periods[i] > 0.8) and LS_dict[f'period_{i+1}']/periods[i] < 1.2)

def test_real_targets(p_min_thresh=0.05, p_max_thresh=100., samples_per_peak=50):
lcs = ['./targets_tests/Gaia_DR3_2314778985026776320_tests/lc_2314778985026776320_0029_1_2_reg_oflux.csv',
'./targets_tests/BD+20_2465_tests/lc_BD+20_2465_0045_3_4_cbv_oflux.csv',
'./targets_tests/GESJ08065664-4703000_tests/lc_GESJ08065664-4703000_0061_3_1_reg_oflux.csv',
'./targets_tests/ABDor_tests/lc_AB_Dor_0036_4_3_reg_oflux.csv']
targ_dir = './tessilator/tests/targets_tests'

lcs = [f'{targ_dir}/Gaia_DR3_2314778985026776320_tests/lc_2314778985026776320_0029_1_2_reg_oflux.csv',
f'{targ_dir}/BD+20_2465_tests/lc_BD+20_2465_0045_3_4_cbv_oflux.csv',
f'{targ_dir}/GESJ08065664-4703000_tests/lc_GESJ08065664-4703000_0061_3_1_reg_oflux.csv',
f'{targ_dir}/ABDor_tests/lc_AB_Dor_0036_4_3_reg_oflux.csv']
periods = [13.375,6.719,2.492,0.514]
for i, (lc, period) in enumerate(zip(lcs, periods)):
converters = {'pass_sparse' : bool,
Expand Down
Empty file.

0 comments on commit 1db4746

Please sign in to comment.