-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Claudio,
I tested the v2-rebase-main branch, and I encountered one issue and some minor ones:
- The main issue concerns the
free_surface_amplificationconfiguration parameter. If not set specifically, it defaults to['2.0']. However, the_get_free_surface_amplificationinssp_build_spectra.pyexpects a scalar or a tuple of tuples. It thus raises an error, causing all spectra to be skipped. I think this is why you had to create an empty source_spec.conf in your notebook (marked as #FIXME) - A minor issue is that an error occurs when trying to plot the stacked spectrum to screen, when
config.options.outdiris set to None. This can be solved easily by replacing the last line in theplot_stacked_spectrafunction:
_savefig(fig)
by
if config.plot_show:
plt.show()
if config.plot_save:
_savefig(fig)
similar to the other plotting functions
- Finally, I ran in some problems with my default python environment, which is still on python 3.7.10. This version does not support the
:=operator (used inconfig.pyandconfig_helpers.py), nor the use of the|=operator with dictionaries (used inconfigobj.helpers.py. I realize I will have to update my environment eventually, but on the other hand I'm wondering if it is worth making sourcespec incompatible with all python versions before 3.9? Of course, this is your decision.
I also tested the feature to calculate travel times from a 1D velocity model, ported from v1, and it appears to work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels