Hello,
I am trying to run *07.plot_dtt.py <http://07.plot_dtt.py>* but there seems
to be a problem:
*oscar@bayta:~/sweet_noise$ py 07.plot_dtt.py <http://07.plot_dtt.py> *
* /home/oscar/anaconda/lib/python2.7/site-
packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The
oldnumeric module will be dropped in Numpy 1.9*
* warnings.warn(_msg, ModuleDeprecationWarning)*
* /home/oscar/anaconda/lib/python2.7/site-packages/setuptools-2.2-
py2.7.egg/pkg_resources.py:991: UserWarning: /home/oscar/.python-eggs is
writable by group/others and vulnerable to attack when used with
get_resource_filename. Consider a more secure location (set with
.set_extraction_path or the PYTHON_EGG_CACHE environment variable).*
* loading 1 days*
* Traceback (most recent call last):*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 115, in
<module>*
* py1_wmean, py1_wstd = get_wavgwstd(allbut)*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 59, in
get_wavgwstd*
* h = grouped.apply(wstd)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 424, in apply*
* return self._python_apply_general(f)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 427, in _python_apply_general*
* keys, values, mutated = self.grouper.apply(f, self.obj, self.axis)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 883, in apply*
* res = f(group)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 422, in f*
* return func(g, *args, **kwargs)*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 52, in wstd*
* wstd = np.sqrt(np.sum(w * (d - wavg) ** 2) / ((N - 1) * np.sum(w) /
N))*
* ZeroDivisionError: float division by zero*
I do not have much experiencie using python. if anyone has any idea I will
appreciate it!
Oscar
Show replies by date
Hello,
I am trying to run *07.plot_dtt.py <http://07.plot_dtt.py>* but there seems
to be a problem:
*oscar@bayta:~/sweet_noise$ py 07.plot_dtt.py <http://07.plot_dtt.py> *
* /home/oscar/anaconda/lib/python2.7/site-
packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The
oldnumeric module will be dropped in Numpy 1.9*
* warnings.warn(_msg, ModuleDeprecationWarning)*
* /home/oscar/anaconda/lib/python2.7/site-packages/setuptools-2.2-
py2.7.egg/pkg_resources.py:991: UserWarning: /home/oscar/.python-eggs is
writable by group/others and vulnerable to attack when used with
get_resource_filename. Consider a more secure location (set with
.set_extraction_path or the PYTHON_EGG_CACHE environment variable).*
* loading 1 days*
* Traceback (most recent call last):*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 115, in
<module>*
* py1_wmean, py1_wstd = get_wavgwstd(allbut)*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 59, in
get_wavgwstd*
* h = grouped.apply(wstd)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 424, in apply*
* return self._python_apply_general(f)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 427, in _python_apply_general*
* keys, values, mutated = self.grouper.apply(f, self.obj, self.axis)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 883, in apply*
* res = f(group)*
* File "/home/oscar/anaconda/lib/python2.7/site-
packages/pandas/core/groupby.py", line 422, in f*
* return func(g, *args, **kwargs)*
* File "07.plot_dtt.py <http://07.plot_dtt.py>", line 52, in wstd*
* wstd = np.sqrt(np.sum(w * (d - wavg) ** 2) / ((N - 1) * np.sum(w) /
N))*
* ZeroDivisionError: float division by zero*
I do not have much experiencie using python. if anyone has any idea I will
appreciate it!
Oscar