Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/diffpy/srmise/baselines/nanospherical.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _jacobianraw(self, pars, r, free):
emsg = "Argument free must have " + str(self.npars) + " elements."
raise ValueError(emsg)
jacobian = [None for p in range(self.npars)]
if (free is False).sum() == self.npars:
if np.sum(np.logical_not(free)) == self.npars:
return jacobian

if np.isscalar(r):
Expand Down Expand Up @@ -247,7 +247,6 @@ def getmodule(self):
for tup in zip(r, val, *outjac):
for t in tup:
if t is None:
print("%s" % None).ljust(10),
print(f"{None}".ljust(10))
else:
print("% .3g" % t).ljust(10),
print
print(f"{t:.3g}".ljust(10))
Loading