Re: [MSNoise] [msnoise] installer problem

2017-03-02 Thread VICIC BLAZ [PHD0900016]
since u are using anaconda, you can install packages from there...

lets say pyqt:


conda install pyqt


cheers,

blaž


--

Blaz Vicic, PhD student

Department of Mathematics and Geosciences (DMG)
University of Trieste
Via Weiss 4, 34127 Trieste Italy

From: msnoise-boun...@mailman-as.oma.be  on 
behalf of sun jie 
Sent: Thursday, March 2, 2017 4:02:53 PM
To: msnoise@mailman-as.oma.be
Subject: [MSNoise] [msnoise] installer problem

Hi,Thomas and everyone.

I'm installing the Msnoise 1.4 version in Ubuntu 16.04 LTS 64bit system with 
the Quick Start-Linux.
Start process without errors, and now I have this problem after I launch the 
msnoise 1.4. some package is missing, and wx,Pyside,PyQt4 can not be installed. 
The error report is described below.
how can I solve this problem? many thanks!

Ubuntu 16.04 LTS 64bit



$ msnoise bugreport -s -m



result in



* Computer Report *



+SYSTEM+---

Linux

sj-ThinkPad-L440

4.8.0-36-generic

#36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017

x86_64

x86_64

debian - stretch/sid -



+PYTHON+---

Python:2.7.13 |Anaconda 4.3.0 (64-bit)| (default, Dec 20 2016, 23:09:15)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]



---+MODULES+---



Required:

[X] setuptools: 27.2.0

[X] click: 6.7

[X] numpy: 1.12.0

[X] scipy: 0.18.1

[X] pandas: 0.19.2

[X] matplotlib: 2.0.0

[X] statsmodels: 0.6.1

[X] sqlalchemy: 1.1.5

[X] traitsui: 5.1.0

[X] traits: 4.6.0

[X] scikits.samplerate: present (no version)

[X] obspy: 1.0.2

[X] flask: 0.12

[X] flask.ext.admin: 0.12

[X] flask_admin: 1.4.2

[X] wtforms: 2.1

[X] bokeh: 0.12.4



Only necessary if you plan to build the doc locally:

[X] sphinx: 1.5.1

[X] jinja2: 2.9.5



Graphical Backends: (at least one is required)

[ ] wx: not found (install via None)

[ ] PyQt4: not found (install via None)

[ ] PySide: not found (install via None)



Not required, just checking:

[X] json: 2.0.9

[X] psutil: 5.0.1

[ ] reportlab: not found (install via None)

[X] configobj: 5.0.6

[X] pkg_resources: present (no version)

[ ] paramiko: not found (install via None)

[X] ctypes: 1.1.0

[X] pyparsing: 2.1.4

[X] distutils: 2.7.13

[X] IPython: 5.1.0

[ ] vtk: not found (install via None)

[ ] enable: not found (install via None)



Lack wx ,Pyside,PyQt4



 $pip install wx



result in

…

 Error running configure

ERROR: failed building wxWidgets

Traceback (most recent call last):

  File "build.py", line 1184, in cmd_build_wx

wxbuild.main(wxDir(), build_options)

  File "/tmp/pip-build-Gktqot/wx/buildtools/build_wxwidgets.py", line 368, 
in main

"Error running configure")

  File "/tmp/pip-build-Gktqot/wx/buildtools/build_wxwidgets.py", line 85, 
in exitIfError

raise builder.BuildError(msg)

BuildError

Finished command: build_wx (2.579s)

Finished command: build (2.579s)

Command '"/home/sj/anaconda2/bin/python" -u build.py build' failed with 
exit code 1.





Command "/home/sj/anaconda2/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-Gktqot/wx/setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-RY6baU-record/install-record.txt --single-version-externally-managed 
--compile" failed with error code 1 in /tmp/pip-build-Gktqot/wx/





$pip install PyQt4



result in

Collecting PyQt4

  Could not find a version that satisfies the requirement PyQt4 (from versions: 
)

No matching distribution found for PyQt4



$pip install Pyside



result in

…

Failed building wheel for Pyside

…

 Qt QTGUI library not found.

Qt QTXML library not found.

Qt QTCORE library not found.

CMake Error at ApiExtractor/CMakeLists.txt:82 (qt4_add_resources):

  Unknown CMake command "qt4_add_resources".





-- Configuring incomplete, errors occurred!

See also 
"/tmp/pip-build-ZnLx48/Pyside/pyside_build/py2.7-qt5.6.2-64bit-release/shiboken/CMakeFiles/CMakeOutput.log".

error: Error configuring shiboken





Command "/home/sj/anaconda2/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-ZnLx48/Pyside/setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-WtFOuA-record/install-record.txt --single-version-externally-managed 
--compile" failed with error code 1 in /tmp/pip-build-ZnLx48/Pyside/



$msnoise config



result in

2017-03-01 22:04:21 [INFO] Could not import traits UI backend 'qt4'

2017-03-01 22:04:21 [ERROR] Cannot import PySide or PyQt4


Re: [MSNoise] Error in distance.py

2016-12-19 Thread VICIC BLAZ [PHD0900016]
Actually I had to change this in all the scripts.


From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of VICIC BLAZ [PHD0900016] <blaz.vi...@phd.units.it>
Sent: Tuesday, December 20, 2016 8:32:19 AM
To: msnoise@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 
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@mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise
___
MSNoise mailing list
MSNoise@mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise


Re: [MSNoise] Tutorial

2016-10-13 Thread VICIC BLAZ [PHD0900016]
A tut with small dataset would be useful indeed...Anyway, I think your problem 
is, that you did not populate the station table.

http://msnoise.org/doc/workflow.html#module-msnoise.s002populate_station_table


afaik you will have to do it manualy, since there is a bug in 1.4 version from 
the web interface.


blaz


From: msnoise-boun...@mailman-as.oma.be  on 
behalf of Julie Albaric 
Sent: Thursday, October 13, 2016 10:49:28 AM
To: msnoise@mailman-as.oma.be
Subject: [MSNoise] Tutorial

Hi !

I would like to use MSNoise and was wondering if you had, in addition to the 
documentation on your website, a tutorial with a small dataset.
Actually, I’ve installed MSNoise on my Mac with SQLite, see the web interface 
but as soon as I try to create a station list I get an error message :
builtins.TypeError

TypeError: __init__() missing 8 required positional arguments: 'net', 'sta', 
'X', 'Y', 'altitude', 'coordinates', 'instrument', and 'used'


I’m not very familiar with Python so I don’t know if it’s because I’ve missed 
something in the way I use MSNoise (parameters to change/ files to be present 
in the project folder…) or if it comes from the installation itself.

Thanks,

Julie

--
Julie Albaric
UMR 6249 Chrono-environnement
Université de Franche-Comté
16 route de Gray
25030 Besançon, France
Tel. +33 3 81 66 63 69

___
MSNoise mailing list
MSNoise@mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise
___
MSNoise mailing list
MSNoise@mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise


Re: [MSNoise] MSNoise Digest, Vol 31, Issue 1

2016-10-06 Thread VICIC BLAZ [PHD0900016]
Hi,
I will use this correspondence for my question, since you already mentioned 
removal of the response.

Do i have to change the code or something if I have different stationxmls for 
different years, so they are read correctly, or does the code manage this and i 
just put them into the folder?

Thanks


From: msnoise-boun...@mailman-as.oma.be  on 
behalf of Flinders, Ashton 
Sent: Thursday, October 6, 2016 7:38:40 PM
To: Python Package for Monitoring Seismic Velocity Changes using AmbientSeismic 
Noise
Subject: Re: [MSNoise] MSNoise Digest, Vol 31, Issue 1

Thanks Esteban,

I have looked through the documentation extensively, as well as the SRL
paper, and a bit of grepping on the source code (e.g. it took me a while to
figure out why in the world I couldnt remove instrument responses using a
RESP or PZ file, since it is listed on the documentation page, until I
grepped the source code and saw those were not implemented.)

1) Yes. It is more efficient to compute the cross-correlation functions or
Green’s functions using 30-min chunks. Although you can change this feature
if you will. Segments are re-build afterwards.

This is only true if the daily segments are always preloaded into memory
(IO vs CC time). The SRL paper makes it sounds like this is the case, but I
want to make sure that this is always the case, even for processing many
stations/days or long segments. I also wasnt sure if these segmented CC
were used for any statistics (e.g. uncertainty in daily CC values).

2) You need to define the filters in order to compute the
cross-correlations and extract the coherent part of the ambient noise for a
given frequency range. MWCS is used to compute the moving window cross
spectral analysis after the cross-correlation procedure.

Yes, I understand that (the way its been written) filter values should be
defined before the CC (which really should only be the whiteneing band or
preprocessing), however I dont understand why in the web gui the whiten and
MWCS filters are put within the same group. This make me predefine a MWCS
filter band, along with my whiten band, even though the MWCS doesnt happed
for another two processing steps. This leads to confusion, for example;

What happens if I compute the CC's with a defined filter (as written, a
MWCS and whiten filter defined together) and then want to compute different
MWCS's later on when I actually get to the MWCS step. Can I just define a
new filter, with new mwcs_low mwcs_high values? Since the web gui forces me
to define a filter high low value (whiten, I assume) does it not use these?
Do I have to go back and recalculate the cross correlations everytime I
want to add an MWCS filter (which I wouldnt expect I have too)?

Similarly, what happens if I want to delete a set of processed MWCS or
stacks? I cant just delete the folder, since their are still pointers in
the sql database. Just reprocessing doesnt seem to work either.

thanks again

-ashton




On Thu, Oct 6, 2016 at 10:17 AM, Esteban Chaves  wrote:

> Hi Ashton,
>
> As an active user:
>
> I highly recommend you to check the documentation: http://msnoise.org/doc/
> workflow.html#module-msnoise.s03compute_cc  workflow.html#module-msnoise.s03compute_cc>
> I think the pre-processing and processing steps are well documented in the
> web site.
>
> 1) Yes. It is more efficient to compute the cross-correlation functions or
> Green’s functions using 30-min chunks. Although you can change this feature
> if you will. Segments are re-build afterwards.
>
> 2) You need to define the filters in order to compute the
> cross-correlations and extract the coherent part of the ambient noise for a
> given frequency range. MWCS is used to compute the moving window cross
> spectral analysis after the cross-correlation procedure.
>
> 3) dunno. May be Thomas can give you more info.
>
> -Esteban J. Chaves
>
>
> > On Oct 6, 2016, at 5:00 AM, msnoise-requ...@mailman-as.oma.be wrote:
> >
> > Send MSNoise mailing list submissions to
> >   msnoise@mailman-as.oma.be
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >   http://mailman-as.oma.be/mailman/listinfo/msnoise
> > or, via email, send a message with subject or body 'help' to
> >   msnoise-requ...@mailman-as.oma.be
> >
> > You can reach the person managing the list at
> >   msnoise-ow...@mailman-as.oma.be
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of MSNoise digest..."
> >
> >
> > Today's Topics:
> >
> >   1. new user (Flinders, Ashton)
> >
> >
> > --
> >
> > Message: 1
> > Date: Wed, 5 Oct 2016 13:10:53 -0700
> > From: "Flinders, Ashton" 
> > To: 
> > Subject: [MSNoise] new user
> > Message-ID:
> >   

Re: [MSNoise] Station list

2016-09-20 Thread VICIC BLAZ [PHD0900016]
You were right... i found the solution:


If someone else will have this problem.

On Ubuntu 16.04 u need to add this at the end of my.cnf file:


[mysqld]
sql_mode="TRADITIONAL,NO_AUTO_CREATE_USER"




From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of Thomas Lecocq <thomas.lec...@seismology.be>
Sent: Tuesday, September 20, 2016 8:08:11 PM
To: msnoise@mailman-as.oma.be
Subject: Re: [MSNoise] Station list

Blaz,

The solution I gave worked for me. Ask you sysadmin or someone who knows
about linux systems, it might be a different setting on different
flavours of linux... It's not a MSNoise problem, I'll try to come up
with a workaround later but for now I'm sure you'll find a solution.

Thomas


On 20/09/2016 17:29, VICIC BLAZ [PHD0900016] wrote:
> The problem was actually in PyTables... I reinstalled it with apt-get and it 
> did not work...then i checked with anaconda. it was not installed there, so i 
> installed it, and now it works.
>
>
> Next problem is, as i saw the same, as Emily had last month... was it 
> resolved?
>
> i try to stack and i get:
>
>
> Lets STACK !
> 2016-09-20 18:21:23 [DEBUG] Starting the ref stack
> []
> 2016-09-20 18:21:24 [DEBUG] Processing SL_CEY:SL_JAVS-ZZ-2
> Traceback (most recent call last):
>File "/home/blaz/miniconda2/bin/msnoise", line 11, in 
>  sys.exit(run())
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/scripts/msnoise.py",
>  line 614, in run
>  cli(obj={})
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/click/core.py", 
> line 716, in __call__
>  return self.main(*args, **kwargs)
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/click/core.py", 
> line 696, in main
>  rv = self.invoke(ctx)
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/click/core.py", 
> line 1060, in invoke
>  return _process_result(sub_ctx.command.invoke(sub_ctx))
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/click/core.py", 
> line 889, in invoke
>  return ctx.invoke(self.callback, **ctx.params)
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/click/core.py", 
> line 534, in invoke
>  return callback(*args, **kwargs)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/scripts/msnoise.py",
>  line 301, in stack
>  main('ref', interval)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/s04stack.py", line 
> 203, in main
>  updated_days = updated_days_for_dates(db, start, end, pair.replace('_', 
> '.'), jobtype='CC', 
> interval=datetime.timedelta(days=interval),returndays=True)
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/api.py", 
> line 1189, in updated_days_for_dates
>  days = session.query(Job).filter(Job.pair == pair).filter(Job.day >= 
> date1).filter(Job.day <= date2).filter(Job.jobtype == 
> jobtype).filter(Job.lastmod >= 
> lastmod).group_by(Job.day).order_by(Job.day).all()
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/orm/query.py", 
> line 2613, in all
>  return list(self)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/orm/query.py", 
> line 2761, in __iter__
>  return self._execute_and_instances(context)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/orm/query.py", 
> line 2776, in _execute_and_instances
>  result = conn.execute(querycontext.statement, self._params)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
>  line 914, in execute
>  return meth(self, multiparams, params)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/sql/elements.py",
>  line 323, in _execute_on_connection
>  return connection._execute_clauseelement(self, multiparams, params)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
>  line 1010, in _execute_clauseelement
>  compiled_sql, distilled_params
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
>  line 1146, in _execute_context
>  context)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
>  line 1341, in _handle_dbapi_exception
>  exc_info
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/sqlalchemy/util/compat.py",
>  line 202, in raise_from_cause
>  reraise(type(exception), exception

Re: [MSNoise] Station list

2016-09-20 Thread VICIC BLAZ [PHD0900016]
ections.py", 
line 393, in check_error
err.raise_mysql_exception(self._data)
  File "/home/blaz/miniconda2/lib/python2.7/site-packages/pymysql/err.py", line 
107, in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1055, u"Expression 
#1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 
'msnoise.jobs.ref' which is not functionally dependent on columns in GROUP BY 
clause; this is incompatible with sql_mode=only_full_group_by") [SQL: u'SELECT 
jobs.ref AS jobs_ref, jobs.day AS jobs_day, jobs.pair AS jobs_pair, 
jobs.jobtype AS jobs_jobtype, jobs.flag AS jobs_flag, jobs.lastmod AS 
jobs_lastmod \nFROM jobs \nWHERE jobs.pair = %(pair_1)s AND jobs.day >= 
%(day_1)s AND jobs.day <= %(day_2)s AND jobs.jobtype = %(jobtype_1)s AND 
jobs.lastmod >= %(lastmod_1)s GROUP BY jobs.day ORDER BY jobs.day'] 
[parameters: {u'day_2': datetime.date(2016, 9, 20), u'lastmod_1': 
datetime.datetime(2016, 9, 19, 18, 21, 24, 191369), u'day_1': 
datetime.date(1970, 1, 1), u'jobtype_1': 'CC', u'pair_1': 'SL.CEY:SL.JAVS'}]



So, as you mentioned,  i added sql_mode=TRADITIONAL line in my.cnf, and the 
same as for Emily,
sudo service mysql  restart did not work. i added  [mysql] in front of the line 
that i added, and now restart works, but I get the same error as before when 
calling

msnoise stack -r -m

any idea? or should i install older version of mysql?

thanks



From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of Thomas Lecocq <thomas.lec...@seismology.be>
Sent: Tuesday, September 20, 2016 5:10:46 PM
To: msnoise@mailman-as.oma.be
Subject: Re: [MSNoise] Station list

Hi,

you probably checked "keep all" parameter. it's really not properly
tested. just avoid it for the moment.

Thomas


On 20/09/2016 15:50, VICIC BLAZ [PHD0900016] wrote:
> Sorry, but there is another problem...
>
> i ran:
>
> msnoise -t 2 scan_archive --init
>
> msnoise new_jobs
>
> without problems.
>
>
> then i tried with
>
> msnoise -t 4 compute_cc
>
>
> it starts to work, but after some time it produces this error:
>
> ...
>
> 2016-09-20 16:42:18 [DEBUG] Azimuth=258.9
> Process Process-1:
> Traceback (most recent call last):
>File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", 
> line 258, in _bootstrap
>  self.run()
>File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", 
> line 114, in run
>  self._target(*self._args, **self._kwargs)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", 
> line 683, in main
>  export_allcorr(db, ccfid, allcorr[ccfid])
>File "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/api.py", 
> line 825, in export_allcorr
>  df.to_hdf(os.path.join(path, date+'.h5'), 'data')
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/core/generic.py", 
> line 1101, in to_hdf
>  return pytables.to_hdf(path_or_buf, key, self, **kwargs)
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", 
> line 259, in to_hdf
>  complib=complib) as store:
>File 
> "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", 
> line 389, in __init__
>  'importing'.format(ex=str(ex)))
> ImportError: HDFStore requires PyTables, "No module named tables" problem 
> importing
>
> I tried reinstalling PyTables without luck.
>
>
> Thanks!
>
>
> 
> From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> 
> on behalf of VICIC BLAZ [PHD0900016] <blaz.vi...@phd.units.it>
> Sent: Tuesday, September 20, 2016 3:43:22 PM
> To: msnoise@mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Thanks, it works now.
>
>
> Blaž
>
> 
> From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> 
> on behalf of Thomas Lecocq <thomas.lec...@seismology.be>
> Sent: Tuesday, September 20, 2016 3:01:07 PM
> To: msnoise@mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Hi,
>
> You have to import data_structure too :
>
> from msnoise.data_structures import data_structure
>
>
> otherwise it'll fail (your custom.py file is not valid, fails at import).
>
> Thomas
>
>
> On 20/09/2016 12:59, VICIC BLAZ [PHD0900016] wrote:
>> Thank you.
>>
>>
>> Which brings me to the 2nd question...
>>
>> I tried to populate with this command, but of course it is not working...
>>
>

Re: [MSNoise] Station list

2016-09-20 Thread VICIC BLAZ [PHD0900016]
Sorry, but there is another problem...

i ran:

msnoise -t 2 scan_archive --init

msnoise new_jobs

without problems.


then i tried with

msnoise -t 4 compute_cc


it starts to work, but after some time it produces this error:

...

2016-09-20 16:42:18 [DEBUG] Azimuth=258.9
Process Process-1:
Traceback (most recent call last):
  File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", line 
258, in _bootstrap
self.run()
  File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", line 
114, in run
self._target(*self._args, **self._kwargs)
  File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", 
line 683, in main
export_allcorr(db, ccfid, allcorr[ccfid])
  File "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/api.py", line 
825, in export_allcorr
df.to_hdf(os.path.join(path, date+'.h5'), 'data')
  File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/core/generic.py", 
line 1101, in to_hdf
return pytables.to_hdf(path_or_buf, key, self, **kwargs)
  File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", line 
259, in to_hdf
complib=complib) as store:
  File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", line 
389, in __init__
'importing'.format(ex=str(ex)))
ImportError: HDFStore requires PyTables, "No module named tables" problem 
importing

I tried reinstalling PyTables without luck.


Thanks!



From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of VICIC BLAZ [PHD0900016] <blaz.vi...@phd.units.it>
Sent: Tuesday, September 20, 2016 3:43:22 PM
To: msnoise@mailman-as.oma.be
Subject: Re: [MSNoise] Station list

Thanks, it works now.


Blaž


From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of Thomas Lecocq <thomas.lec...@seismology.be>
Sent: Tuesday, September 20, 2016 3:01:07 PM
To: msnoise@mailman-as.oma.be
Subject: Re: [MSNoise] Station list

Hi,

You have to import data_structure too :

from msnoise.data_structures import data_structure


otherwise it'll fail (your custom.py file is not valid, fails at import).

Thomas


On 20/09/2016 12:59, VICIC BLAZ [PHD0900016] wrote:
> Thank you.
>
>
> Which brings me to the 2nd question...
>
> I tried to populate with this command, but of course it is not working...
>
>
> What I tried:
>
>
> in the folder
>
> msnoise/data I have put a miniseed file of one station of one day.
>
> Name of the miniseed is in the format:
>
> STA.NET.CHAN.YEAR.DAY
>
>
> as data_folder in settings I have set this folder.
>
>
> in the data_structures.py I added this line:
>
> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>
>
> i created a custom.py script:
>
>
> from obspy import read
>
> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>
> def populate():
>  st = read("*")
>  st.merge()
>
>  stations = []
>
>  for tr in st:
>  sta = str(tr.stats.station)
>  net = str(tr.stats.network)
>  stations.append(str("%s_%s") % (net, sta))
>
>  return stations
>
> So,now i have main folder with sub folder data, where I have miniseed file. 
> in the main folder I put custom.py and db.ini and, if I understand right, run 
> msnoise populate from here. In the browser I set data_folder to where my 
> miniseed is and data_structure as SEI.
>
> When i run the populate command, i get error:
>
>
> ()
>>> Populating the Station table
> ()
> Can't parse the archive for format SEI !
> trying to import local parser (should return a station list)
> ()
> No file named custom.py in the /home/blaz/Documents/msnoise folder
>
> (custom.py IS in /home/blaz/Documents/msnoise)
> I hope I was clear enough.
>
> Thanks!
>
>
>
>
>
> 
> From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> 
> on behalf of Thomas Lecocq <thomas.lec...@seismology.be>
> Sent: Tuesday, September 20, 2016 12:56:56 PM
> To: msnoise@mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Hi,
>
> Yes, this bug was recently reported by another user and I haven't had
> time to fix it.
>
> The best way to add the station currently is to use the "msnoise
> populate" command.
>
> Cheers,
>
> Thomas
>
>
> On 20/09/2016 11:51, VICIC BLAZ [PHD0900016] wrote:
>> Dear all
>>
>>
>> I would like to try to use msnoise. I installed it on Ubuntu 16.04, and as 
>> far as I know, everythin

Re: [MSNoise] Station list

2016-09-20 Thread VICIC BLAZ [PHD0900016]
Thanks, it works now.


Blaž


From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> on 
behalf of Thomas Lecocq <thomas.lec...@seismology.be>
Sent: Tuesday, September 20, 2016 3:01:07 PM
To: msnoise@mailman-as.oma.be
Subject: Re: [MSNoise] Station list

Hi,

You have to import data_structure too :

from msnoise.data_structures import data_structure


otherwise it'll fail (your custom.py file is not valid, fails at import).

Thomas


On 20/09/2016 12:59, VICIC BLAZ [PHD0900016] wrote:
> Thank you.
>
>
> Which brings me to the 2nd question...
>
> I tried to populate with this command, but of course it is not working...
>
>
> What I tried:
>
>
> in the folder
>
> msnoise/data I have put a miniseed file of one station of one day.
>
> Name of the miniseed is in the format:
>
> STA.NET.CHAN.YEAR.DAY
>
>
> as data_folder in settings I have set this folder.
>
>
> in the data_structures.py I added this line:
>
> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>
>
> i created a custom.py script:
>
>
> from obspy import read
>
> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>
> def populate():
>  st = read("*")
>  st.merge()
>
>  stations = []
>
>  for tr in st:
>  sta = str(tr.stats.station)
>  net = str(tr.stats.network)
>  stations.append(str("%s_%s") % (net, sta))
>
>  return stations
>
> So,now i have main folder with sub folder data, where I have miniseed file. 
> in the main folder I put custom.py and db.ini and, if I understand right, run 
> msnoise populate from here. In the browser I set data_folder to where my 
> miniseed is and data_structure as SEI.
>
> When i run the populate command, i get error:
>
>
> ()
>>> Populating the Station table
> ()
> Can't parse the archive for format SEI !
> trying to import local parser (should return a station list)
> ()
> No file named custom.py in the /home/blaz/Documents/msnoise folder
>
> (custom.py IS in /home/blaz/Documents/msnoise)
> I hope I was clear enough.
>
> Thanks!
>
>
>
>
>
> 
> From: msnoise-boun...@mailman-as.oma.be <msnoise-boun...@mailman-as.oma.be> 
> on behalf of Thomas Lecocq <thomas.lec...@seismology.be>
> Sent: Tuesday, September 20, 2016 12:56:56 PM
> To: msnoise@mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Hi,
>
> Yes, this bug was recently reported by another user and I haven't had
> time to fix it.
>
> The best way to add the station currently is to use the "msnoise
> populate" command.
>
> Cheers,
>
> Thomas
>
>
> On 20/09/2016 11:51, VICIC BLAZ [PHD0900016] wrote:
>> Dear all
>>
>>
>> I would like to try to use msnoise. I installed it on Ubuntu 16.04, and as 
>> far as I know, everything was installed as planed.
>>
>> Now, I open msnoise admin and try to manually add stations in the browser. I 
>> set NET, STA, X, Y, ALT, COORD and click save. When I do that, I get a lot 
>> of errors:
>>
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 2000, in __call__
>>
>> return self.wsgi_app(environ, start_response)
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1991, in wsgi_app
>>
>> response = self.make_response(self.handle_exception(e))
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1567, in handle_exception
>>
>> reraise(exc_type, exc_value, tb)
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1988, in wsgi_app
>>
>> response = self.full_dispatch_request()
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1641, in full_dispatch_request
>>
>> rv = self.handle_user_exception(e)
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1544, in handle_user_exception
>>
>> reraise(exc_type, exc_value, tb)
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1639, in full_dispatch_request
>>
>> rv = self.dispatch_request()
>>
>> *
>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
>> 1625, in dispatch_r

[MSNoise] Station list

2016-09-20 Thread VICIC BLAZ [PHD0900016]
Dear all


I would like to try to use msnoise. I installed it on Ubuntu 16.04, and as far 
as I know, everything was installed as planed.

Now, I open msnoise admin and try to manually add stations in the browser. I 
set NET, STA, X, Y, ALT, COORD and click save. When I do that, I get a lot of 
errors:


  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
2000, in __call__

return self.wsgi_app(environ, start_response)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1991, in wsgi_app

response = self.make_response(self.handle_exception(e))

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1567, in handle_exception

reraise(exc_type, exc_value, tb)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1988, in wsgi_app

response = self.full_dispatch_request()

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1641, in full_dispatch_request

rv = self.handle_user_exception(e)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1544, in handle_user_exception

reraise(exc_type, exc_value, tb)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1639, in full_dispatch_request

rv = self.dispatch_request()

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 
1625, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/base.py", 
line 69, in inner

return self._run_view(f, *args, **kwargs)

  *
File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/base.py", 
line 368, in _run_view

return fn(self, *args, **kwargs)

  *
File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/model/base.py", 
line 1920, in create_view

model = self.create_model(form)

  *
File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py",
 line 1028, in create_model

if not self.handle_view_exception(ex):

  *
File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py",
 line 1011, in handle_view_exception

return super(ModelView, self).handle_view_exception(exc)

  *
File 
"/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py",
 line 1022, in create_model

model = self.model()

TypeError: __init__() takes exactly 9 arguments (1 given)



What am I doing wrong?


Thanks,

Blaz
___
MSNoise mailing list
MSNoise@mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise