Remove gempyor.seeding
Dependence On gempyor.model_info.ModelInfo
#422
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.
Describe your changes.
This pull request untangles
gempyor.seeding.Seeding
fromgempyor.model_info.ModelInfo
by requiring explicit values be passed togempyor.seeding.Seeding
. This eases the unit testability of thegempyor.seeding
module. Also adds theModelInfo.get_seeding_data
method which replaces prior calls to theseeding
instance from theModelnfo
instance with amodinf
argument.Does this pull request make any user interface changes? If so please describe.
The user interface changes are:
gempyor.model_info.ModelInfo.get_seeding_data
method,gempyor.seeding.Seeding.get_from_config/file
methods, andgempyor.seeding.Seeding.get_from_file
in favor ofgempyor.seeding.Seeding.get_from_config
.Those are reflected in updates to the documentation in the docstrings of these methods.
What does your pull request address? Tag relevant issues.
This pull request addresses part of GH-397.