Skip to content

Commit

Permalink
Fix MOI spelling
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
andreww committed Mar 31, 2024
1 parent eb419f2 commit f0bbc12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PREM_density_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
],
"source": [
"print(\"Mass of the Earth is:\", prem.mass(prem.r_earth), \"kg\")\n",
"print(\"Earth's moment of inertia is: \", prem.moment_or_inertia(prem.r_earth)[0], \"kg m^2\")\n",
"print(\"I/MR**2:\", prem.moment_or_inertia(prem.r_earth)[1])\n",
"print(\"Earth's moment of inertia is: \", prem.moment_of_inertia(prem.r_earth)[0], \"kg m^2\")\n",
"print(\"I/MR**2:\", prem.moment_of_inertia(prem.r_earth)[1])\n",
"\n",
"# What does it look like?\n",
"fig, ax = plt.subplots(figsize=(10,6))\n",
Expand Down
2 changes: 1 addition & 1 deletion earth_model/earth_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def mass(self, r, r_inner=0.0):
m[i] = self.mass_poly.integrate(r_inner, r[i])
return m

def moment_or_inertia(self, r, r_inner=0.0):
def moment_of_inertia(self, r, r_inner=0.0):
"""
Evaluate moment of inertia inside radius r (in km)
Expand Down

0 comments on commit f0bbc12

Please sign in to comment.