Skip to content

Commit

Permalink
Fixing FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
toqduj committed May 8, 2024
1 parent a84f907 commit deef924
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mcsas3/McData1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ def reBin(
binDat.loc[binN, "Q"] = dfRange.Q.mean(skipna=True)
binDat.loc[binN, "QStd"] = dfRange.Q.std(ddof=1, skipna=True)
binDat.loc[binN, "QSEM"] = dfRange.Q.sem(ddof=1, skipna=True)
binDat.loc[binN, "QError"] = np.sqrt(((dfRange.QSigma) ** 2).sum()) / len(dfRange)
binDat.loc[binN, "QError"] = binDat.loc[binN, "Q"] * QEMin

if "QSigma" in dfRange.keys():
binDat.loc[binN, "QError"] = np.sqrt(((dfRange.QSigma) ** 2).sum()) / len(dfRange)


binDat.loc[binN, "QSigma"] = np.max(
[
binDat.loc[binN, "QSEM"],
Expand Down

0 comments on commit deef924

Please # to comment.