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_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

_______________________________________________
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

Reply via email to