Skip to content

Commit

Permalink
Merge pull request #8 from ucl-exoplanets/dev
Browse files Browse the repository at this point in the history
v1.5.4 - Replace np.product with np.prod
  • Loading branch information
atsiaras authored Nov 4, 2024
2 parents 7010b74 + 2826da9 commit 478d097
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![PyPI Downloads](https://static.pepy.tech/badge/iraclis)

# Iraclis

<img src="https://github.com/ucl-exoplanets/Iraclis/blob/master/logo.jpg" width="25%">
Expand Down Expand Up @@ -46,7 +48,8 @@ Open a terminal and type: `pip install iraclis`

## Updates

#### v.1.5.3 - Improvements and bugs fixes
#### v.1.5.4 - Improvements and bugs fixes
- Replace np.product with np.prod
- Installation issues fixed
- Improved detection of bright and faint stars in the direct image
- Improved eclipse mid-time prediction
Expand Down
2 changes: 1 addition & 1 deletion iraclis/__version__.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.3
1.5.4
2 changes: 1 addition & 1 deletion iraclis/lightcurves1_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def fitting(light_curve, fitted_white_light_curve=None, fitting_spectrum=True,
indices_to_remain = []
for i in components:
indices_to_remain.append(np.array(np.abs(i - np.median(i)) < 20 * np.median(np.abs(i - np.median(i)))))
indices_to_remain = np.where(np.product(indices_to_remain, 0))[0]
indices_to_remain = np.where(np.prod(indices_to_remain, 0))[0]
indices_to_remain = np.sort(np.unique(np.array(indices_to_remain)))

for i in [bjd_tdb_array, spectrum_direction_array, sky_background_level_array,
Expand Down

0 comments on commit 478d097

Please sign in to comment.