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

Error when running 'Sample Laquila --hypers' #92

Closed
Zilhe opened this issue Oct 19, 2021 · 3 comments
Closed

Error when running 'Sample Laquila --hypers' #92

Zilhe opened this issue Oct 19, 2021 · 3 comments

Comments

@Zilhe
Copy link

Zilhe commented Oct 19, 2021

Hello Hannes,
when I run the code "Sample Laquila --hypers
" in Scenario III, it appears the error:
config - INFO All hierarchicals ok!
config - INFO All hyperparameters ok!
config - INFO All priors ok!
models - INFO ... Initialising Geometry Optimizer ...

models - INFO Analysing problem ...
models - INFO ---------------------

geodetic - INFO Number of geodetic datasets: 2
geodetic - INFO Number of geodetic data points: 419
geodetic - WARNING Covariance estimation not implemented (yet)! Using imported covariances!
geodetic - INFO Initialising corrections ...
Traceback (most recent call last):
File "/home/zilong/pycharm-community-2020.3.3/plugins/python-ce/helpers/pydev/pydevd.py", line 1477, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/zilong/pycharm-community-2020.3.3/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/media/zilong/Disk1/Beat/example/beat_01.py", line 2120, in
main()
File "/media/zilong/Disk1/Beat/example/beat_01.py", line 2105, in main
globals()'command_' + command
File "/media/zilong/Disk1/Beat/example/beat_01.py", line 911, in command_sample
project_dir, options.mode, options.hypers)
File "/media/zilong/Disk1/Beat/example/beat/models/problems.py", line 875, in load_model
problem = problem_catalog[pc.mode](config, hypers)
File "/media/zilong/Disk1/Beat/example/beat/models/problems.py", line 643, in init
hypers)
File "/media/zilong/Disk1/Beat/example/beat/models/geodetic.py", line 572, in init
gc, project_dir, sources, events, hypers=hypers)
File "/media/zilong/Disk1/Beat/example/beat/models/geodetic.py", line 474, in init
gc, project_dir, events, hypers=hypers)
File "/media/zilong/Disk1/Beat/example/beat/models/geodetic.py", line 115, in init
event=self.event, correction_configs=correction_configs)
File "/media/zilong/Disk1/Beat/example/beat/heart.py", line 811, in setup_corrections
corr = corr_conf.init_correction()
File "/media/zilong/Disk1/Beat/example/beat/config.py", line 793, in init_correction
self.check_consistency()
File "/media/zilong/Disk1/Beat/example/beat/config.py", line 726, in check_consistency
'filled!' % self.feature)
AttributeError: Ramps correction is enabled, but dataset_names are empty! Either the correction needs to be disabled or the field "dataset_names" needs to be filled!

Can you give me some suggestions? Thank you very much. My config file is attached here
config_geometry.txt

@Zilhe
Copy link
Author

Zilhe commented Oct 19, 2021

Sorry, the code I run is 'Sample Laquila2 --hypers' instead of 'Sample Laquila --hypers'

@hvasbath
Copy link
Owner

Dear Zilhe,
I edited your config file such that it should work, please see the "names" attribute of the SAR datatype and the dataset_names attribute under ramp correction.
config_geometry.txt

Please let me know if the issue persists.
Regards!
Hannes

@Zilhe
Copy link
Author

Zilhe commented Oct 20, 2021

Thank you for your help. It runs well now.

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

2 participants