Skip to content

Commit

Permalink
Merge pull request #2 from spice-herald/bug/drde_overloading
Browse files Browse the repository at this point in the history
Fix error with drde overloading, fix latex typesetting
  • Loading branch information
slwatkins authored Mar 27, 2023
2 parents bb574b6 + e72e418 commit bcb2129
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions darklim/sensitivity/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ def add_drde(self, masses, sigmas, tm="Si", npoints=1000, res=None, gauss_width=
xvals = np.linspace(self._energy_range[0], self._energy_range[1], npoints)

for m, sig in zip(masses, sigmas):
drde = drde(xvals, m, sig, tm=tm)
label = f"DM Mass = {m:.2f} GeV, σ = {sig:.2e} cm$^2$"
drde_plot = drde(xvals, m, sig, tm=tm)
label = f"DM Mass = {m:.2f} GeV, $\sigma$ = {sig:.2e} cm$^2$"
if res is not None:
drde = gauss_smear(xvals, drde, res, gauss_width=gauss_width)
drde_plot = gauss_smear(xvals, drde_plot, res, gauss_width=gauss_width)
label += f"\nWith {gauss_width}$\sigma_E$ Smearing"

self.ax.plot(
xvals,
drde,
drde_plot,
linestyle='--',
label=label,
**kwargs,
Expand Down

0 comments on commit bcb2129

Please sign in to comment.