Skip to content

Commit

Permalink
Fix wrong core mass location when in age_lookback
Browse files Browse the repository at this point in the history
Works on #32

Reported-by Xenos3108
  • Loading branch information
rjfarmer committed Dec 31, 2024
1 parent d7379a3 commit 4fee8c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesaPlot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5719,7 +5719,7 @@ def plotKip3(

if show_mass_loc:
self._showMassLoc(
m, fig, ax, np.linspace(xmin, xmax, np.count_nonzero(modInd)), modInd
m, fig, ax, data_x, modInd
)

self._setYLim(ax, ax.get_ylim(), yrng)
Expand Down Expand Up @@ -5997,6 +5997,7 @@ def _rebinKipDataX(self, data, x, lin_x, nan=False, nan_value=1):
sorter = np.argsort(x)
ind = np.searchsorted(x, lin_x, sorter=sorter, side="left")


s_ind = sorter[ind]

# When flipping the ages we may end up with points at the edge
Expand Down

0 comments on commit 4fee8c7

Please sign in to comment.