-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bugfix for r_power_n_segmented branch #63
Bugfix for r_power_n_segmented branch #63
Conversation
…_distances' argument.
…stances' example in comments.
Is it possible I have no longer write access to this branch after a pull reqest? |
That's bizarre. You should retain the write access. Did you try with a force push? |
Sorry, again my mistake. I was pushing to the wrong remote... |
Nice ! I'll look into details later today |
Why not allow the user to choose the smallest one? I would do something like this (where I also clarified that those are hypocentral distances):
Of course, the check on the length of What do you think? |
I can agree with this implementation, but actually the purpose of the smallest distance is to have no further amplification at smaller distances. This also requires a modification in the
with
|
Ok. I just quickly scanned the Boore (2003) paper, so feel free to propose a better wording for the inline help in the config file. I'll let you do the required commits. Let me know when it's ready to merge 😉 |
OK |
… function to correspond to start of each segment instead of distances separating segments.
…spreading model in _geometrical_spreading_coefficient function.
…'geom_spread_n_distances' configuration parameters for segmented geometrical spreading model.
# The number of exponents must be equal to the number of distances. | ||
# Distances correspond to the start of each segment. | ||
# Note that no geometrical spreading correction is considered | ||
# below the smallest distance. This distance is generally set to 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe write "1 km" ?
OK, will do. |
Done. |
Great. Just a curiosity: setting the smallest distance to 1 km isn't also a way to have a "classical" |
Not per se. |
Ok, clear, thanks. P.S. You can write LaTeX equations by putting them between $ ... $ |
It's good to go for me. Ok to merge it? |
Yes |
Switching back to main |
I'm also rebasing v2, I'll let you knwo when it's done |
|
OK. I haven't been working on v2 for a while, but I will try. I guess I will have to force-pull? |
Yes, and there's absolutely no hurry to test |
Claudio,
I fixed the bug which I introduced in the
r_power_n_segmented
branch.In order to catch the case where
hinge_distances
is None, I had written:which implies a comparison, which is not supported if
hinge_distances
is an array.Now that this is fixed, I would like to ask your advice concerning the current design:
Currently,
hinge_distances
(corresponding togeom_spread_n_distances
configuration parameter) only contains the distances separating the different segments, with the smallest allowed distance hard-coded to 1.Do you agree with this or would you prefer to include the smallest distance in the list?