Skip to content

Commit 60a655a

Browse files
committed
replaced np.NaN with np.nan
1 parent b354ea2 commit 60a655a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/example_fit_composition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@
191191
# Create empty arrays to store the weight proportions of each phase,
192192
# and the principal uncertainties (we do not use the covariances here,
193193
# although they are calculated)
194-
weight_proportions = np.zeros((len(samples), len(phases))) * np.NaN
195-
weight_proportion_uncertainties = np.zeros((len(samples), len(phases))) * np.NaN
194+
weight_proportions = np.zeros((len(samples), len(phases))) * np.nan
195+
weight_proportion_uncertainties = np.zeros((len(samples), len(phases))) * np.nan
196196

197197
# Loop over the samples, fitting phase proportions
198198
# to the provided bulk composition

tutorial/tutorial_04_fitting.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,9 @@
483483
"# Create empty arrays to store the weight proportions of each phase,\n",
484484
"# and the principal uncertainties (we do not use the covariances here,\n",
485485
"# although they are calculated)\n",
486-
"weight_proportions = np.zeros((len(samples), len(phases)))*np.NaN\n",
486+
"weight_proportions = np.zeros((len(samples), len(phases)))*np.nan\n",
487487
"weight_proportion_uncertainties = np.zeros((len(samples),\n",
488-
" len(phases)))*np.NaN\n",
488+
" len(phases)))*np.nan\n",
489489
"\n",
490490
"residuals = []\n",
491491
"# Loop over the samples, fitting phase proportions\n",

0 commit comments

Comments
 (0)