Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

station naming and store id #55

Open
hvasbath opened this issue Jun 24, 2020 · 1 comment
Open

station naming and store id #55

hvasbath opened this issue Jun 24, 2020 · 1 comment

Comments

@hvasbath
Copy link
Owner

Station names may start with numbers, but store IDs may NOT! leading to:

beat build_gfs CalifBajaFullMT --datatypes='seismic'. And then, I have the following error message:

heart - INFO Using crust2 profile
heart - INFO Station 035Z
heart - INFO ---------------------
Traceback (most recent call last):
File "/usr/local/bin/beat", line 11, in
load_entry_point('beat==1.0', 'console_scripts', 'beat')()
File "/usr/local/lib/python3.8/dist-packages/beat-1.0-py3.8-linux-x86_64.egg/beat/apps/beat.py", line 1686, in main
globals()'command_' + command
File "/usr/local/lib/python3.8/dist-packages/beat-1.0-py3.8-linux-x86_64.egg/beat/apps/beat.py", line 1032, in command_build_gfs
heart.seis_construct_gf(
File "/usr/local/lib/python3.8/dist-packages/beat-1.0-py3.8-linux-x86_64.egg/beat/heart.py", line 1663, in seis_construct_gf
fomosto_config = get_fomosto_baseconfig(
File "/usr/local/lib/python3.8/dist-packages/beat-1.0-py3.8-linux-x86_64.egg/beat/heart.py", line 1481, in get_fomosto_baseconfig
return gf.ConfigTypeA(
File "/usr/local/lib/python3.8/dist-packages/pyrocko/gf/meta.py", line 1606, in init
self.validate(regularize=True, depth=1)
File "/usr/local/lib/python3.8/dist-packages/pyrocko/guts.py", line 846, in validate
self.T.instance.validate(self, regularize, depth)
File "/usr/local/lib/python3.8/dist-packages/pyrocko/guts.py", line 545, in validate
val = validator.validate_children(val, regularize, depth)
File "/usr/local/lib/python3.8/dist-packages/pyrocko/guts.py", line 557, in validate_children
newpropval = prop.validate(propval, regularize, depth-1)
File "/usr/local/lib/python3.8/dist-packages/pyrocko/guts.py", line 542, in validate
validator.validate_extra(val)
File "/usr/local/lib/python3.8/dist-packages/pyrocko/guts.py", line 1306, in validate_extra
raise ValidationError('%s: "%s" does not match pattern %s' % (
pyrocko.guts.ValidationError: id: "035Z_ak135_2.000Hz_0" does not match pattern '^[A-Za-z][A-Za-z0-9._]{0,64}$'

@hvasbath
Copy link
Owner Author

Needs fix in store specific naming scheme- however backwards compatibility needs to be ensured...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant