Added station count in default header #263
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is an attempt at the least invasive change for the header station count. It is based of the existing helper function structure in the
SourceHeader
class with the addition ofparse_station_counts
.It implements a way to count the total number of station, in case the body and surface waves were to be loaded from different weight file instances (in principle it should be rare, but that's an extra layer of precaution).
The next (and only) foreseeable change to the header would be the inclusion of an
*
modifier added to fixed parameters. This should easily be done with the help of thegrid.shape
attributes, but we currently don't have a clean way of adding the grid (if we want to be the default behavior, we would have to change the input parameters forplot_data_greens1
andplot_data_greens2
).