Your ROOT_URL in app.ini is https://git.hpc.odu.edu/ but you are visiting https://git.wahab.hpc.odu.edu/wirawan0/wpylib/commit/1a537af02044b05c9e394e85a97ac8cf30132ebd?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

* Dialect correction: "x == None" -> "x is None".

master
Wirawan Purwanto 10 years ago
parent e46fcec698
commit 1a537af020
  1. 4
      math/stats/avg.py

@ -44,11 +44,11 @@ def get_sample_stats(a, weights=None, result=None):
""" """
from numpy import asarray, count_nonzero, product, sqrt, sum, nan from numpy import asarray, count_nonzero, product, sqrt, sum, nan
a = asarray(a) a = asarray(a)
if result == None: if result is None:
r = weighted_stats() r = weighted_stats()
else: else:
r = result r = result
if weights == None: if weights is None:
r.s0 = product(a.shape) r.s0 = product(a.shape)
r.s1 = sum(a) r.s1 = sum(a)
r.s2 = sum(a**2) r.s2 = sum(a**2)

Loading…
Cancel
Save