Skip to content

Commit 02aa5ed

Browse files
committed
Correction FSBL and remove action pythohn3.8
1 parent 18f1661 commit 02aa5ed

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/actions_unit_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
16+
python-version: [ "3.9", "3.10", "3.11" ]
1717

1818
steps:
1919
- uses: actions/checkout@v3

pyLIMA/magnification/magnification_VBB.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ def magnification_FSBL(separation, mass_ratio, x_source, y_source, rho,
135135
for xs, ys, s in zip(x_source, y_source, separation):
136136
#magnification_VBB = VBB.BinaryMagDark(s, mass_ratio, xs, ys, rho,
137137
# limb_darkening_coefficient)
138-
magnification_VBB = VBM.BinaryMagDark(s, mass_ratio, xs, ys, rho,
139-
limb_darkening_coefficient)
138+
#magnification_VBB = VBM.BinaryMagDark(s, mass_ratio, xs, ys, rho,
139+
# limb_darkening_coefficient)
140+
VBM.a1 = limb_darkening_coefficient
141+
magnification_VBB = VBM.BinaryMag2(s, mass_ratio, xs, ys, rho)
140142

141143
magnification_fsbl.append(magnification_VBB)
142144

pyLIMA/stars/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__all__ = ["Star"]

pyLIMA/tests/test_magnification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_magnification_FSBL():
162162
x_source, y_source, rho,
163163
limb_darkening_coefficient)
164164

165-
assert np.allclose(magnification[0],4.39589349809541)
165+
assert np.allclose(magnification[0],4.396361656443572)
166166

167167

168168
def test_magnification_PSBL():

pyLIMA/tests/test_model.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ def test_FSBL():
234234

235235
pym = Model.compute_pyLIMA_parameters(params)
236236
magi = Model.model_magnification(event.telescopes[0], pym)
237-
assert np.allclose(magi, [4.73518855, 2.32967011])
237+
238+
assert np.allclose(magi, [4.73316752, 2.32814229])
238239

239240

240241
def test_FSPL():
@@ -259,7 +260,7 @@ def test_FSPLarge():
259260
pym = Model.compute_pyLIMA_parameters(params)
260261
magi = Model.model_magnification(event.telescopes[0], pym)
261262

262-
assert np.allclose(magi, [1.05837633, 1.05730364])
263+
assert np.allclose(magi, [1.05906354, 1.05890356])
263264

264265

265266
def test_PSBL():
@@ -312,7 +313,7 @@ def test_USBL():
312313
pym = Model.compute_pyLIMA_parameters(params)
313314
magi = Model.model_magnification(event.telescopes[0], pym)
314315

315-
assert np.allclose(magi, [73.75028234, 2.12549786])
316+
assert np.allclose(magi, [74.02173897, 2.12621654])
316317

317318
event = _create_event()
318319

@@ -321,4 +322,4 @@ def test_USBL():
321322
pym = Model.compute_pyLIMA_parameters(params)
322323
magi = Model.model_magnification(event.telescopes[0], pym)
323324

324-
assert np.allclose(magi, [76.16515049, 2.11882843])
325+
assert np.allclose(magi, [76.32960572, 2.11953819])

0 commit comments

Comments
 (0)