Added write method to _Config class.#85
Added write method to _Config class.#85claudiodsf merged 8 commits intoSeismicSource:v2-rebase-mainfrom
Conversation
|
Claudio, Investigating this issue, I discover that this is because I don't understand this one. The values for these parameters seem to be in agreement with the specs. Here is the configuration file: |
|
OK, I solved it by splitting strings containing lists into string lists before validating. |
13055be to
23c8cdd
Compare
…fig_to_file function to write the file. Added read method to _Config.
…d method of _Config.
01a0d4f to
5f7f19c
Compare
|
Thanks Kris, I fixed a problem which prevented running tests on pull requests against v2 and force-pushed. Will come back later today, when the tests are done (and hopefully pass) 😉 |
|
Does it work now? |
|
Hi Kris, Yes the tests are passing now. But I would like to make some improvements and simplify the code from the CLI module, based on the Hopefully, I'll have time on Monday for this 😉 |
OK, that's fine. |
This allows using it safely from a non-CLI context, such as a notebook
The write() method of the _Config class has been optimized to avoid unnecessary conversions and to handle the free_surface_amplification parameter.
|
Hi Kris, I’ve just pushed a few commits to optimize your excellent ideas. We actually don’t need to convert lists back to strings on Let me know when you'll have a chance to test these changes. Thanks! |
|
I rebased the branch and ran my new notebook. Everything seems to work. But this is probably the problem you were referring to. |
This is the syntax quirk with is equivalent to: i.e., all SNCL codes ( I don't like this too much, but I'm short of ideas for the moment... It's on my TODO list! Anyway, merging this PR. Thanks for the contribution! |
Claudio,
I think it would be handy to save the configuration made in an interactive session, so I added a
writemethod to the_Configclass. Can you check it?