Skip to content

Commit 89c58ba

Browse files
committed
Black reformatting
1 parent 06e486e commit 89c58ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sasctl/pzmm/write_json_files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,14 @@ def calculateFitStat(
544544

545545
try:
546546
from scipy.stats import gamma
547+
547548
_, _, scale = gamma.fit(dataSets[j][1])
548549
fitStats["_GAMMA_"] = 1 / scale
549550
except ImportError:
550-
warnings.warn("scipy was not installed, so the gamma calculation could"
551-
"not be computed.")
551+
warnings.warn(
552+
"scipy was not installed, so the gamma calculation could"
553+
"not be computed."
554+
)
552555
fitStats["_GAMMA_"] = None
553556

554557
intPredict = [round(x) for x in dataSets[j][1]]

0 commit comments

Comments
 (0)