[MSNoise] Error in distance.py

VICIC BLAZ [PHD0900016] BLAZ.VICIC at phd.units.it
Tue Dec 20 08:21:03 UTC 2016


Thanks, i knew i should check on github first :)


----------------------------------------------------------------------

Blaz Vicic, PhD student

Department of Mathematics and Geosciences (DMG)
University of Trieste
Via Weiss 4, 34127 Trieste Italy
________________________________
From: msnoise-bounces at mailman-as.oma.be <msnoise-bounces at mailman-as.oma.be> on behalf of Thomas Lecocq <thomas.lecocq at oma.be>
Sent: Tuesday, December 20, 2016 9:06:52 AM
To: Python Package for Monitoring Seismic Velocity Changes using AmbientSeismic Noise
Subject: Re: [MSNoise] Error in distance.py

Hi Blaz,

yes this has been corrected in https://github.com/ROBelgium/MSNoise/pull/70

and it will be in the next revision.

Cheers,

Thomas


Le 20/12/2016 à 08:40, VICIC BLAZ [PHD0900016] a écrit :
> Actually I had to change this in all the scripts.
>
> ________________________________
> From: msnoise-bounces at mailman-as.oma.be <msnoise-bounces at mailman-as.oma.be> on behalf of VICIC BLAZ [PHD0900016] <BLAZ.VICIC at phd.units.it>
> Sent: Tuesday, December 20, 2016 8:32:19 AM
> To: msnoise at mailman-as.oma.be
> Subject: [MSNoise] Error in distance.py
>
> Dear all..
>
>
> I am trying to start with msnoise (this time for real). I am following the workflow on the website with the test dataset. when i run "msnoise -c plot distance" from the folder with the test data, i got an error:
>
>
> File "/home/blaz/msnoise/test_run/distance.py", line 18, in <module>
>      from scipy.stats.stats import nanmean
> ImportError: cannot import name 'nanmean'
>
>
> I changed the line
>
> from scipy.stats.stats import nanmean
>
>
> to
>
> from scipy import stats
>
>
> and now it works.
>
>
> Any comment on that? Will this brake something for me in future runs or was scipy updated and changed?
>
>
> Thanks,
>
> Blaz
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise

_______________________________________________
MSNoise mailing list
MSNoise at mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise


More information about the MSNoise mailing list