Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezfran committed Jun 16, 2023
1 parent 08b3acc commit 9e12820
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions galpynostatic/make_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ def optimal_particle_size(

factor = np.sqrt((3600 * greg.z * 10.0**optimal_logell) / c_rate)

particle_size = cm_to * factor * np.sqrt(greg.dcoeff_)
sqd = np.sqrt(greg.dcoeff_)
particle_size = cm_to * factor * sqd
particle_size_err = (
cm_to * 0.5 * factor * greg.dcoeff_err_ / np.sqrt(greg.dcoeff_)
cm_to * factor * greg.dcoeff_err_ / (2 * sqd)
if greg.dcoeff_err_
else None
)
Expand Down

0 comments on commit 9e12820

Please sign in to comment.