-
Notifications
You must be signed in to change notification settings - Fork 9
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
Issue 394 src rcv python #397
Open
lsawade
wants to merge
25
commits into
issue-228-anisotropy
Choose a base branch
from
issue-394-src-rcv-python
base: issue-228-anisotropy
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5b14db7
Added overload to read_sources()
lsawade 485666c
Added test to read moment tensor source.
lsawade a58f60d
Forgot to add the test to the google_test_discover part
lsawade 1502880
Merge pull request #401 from PrincetonUniversity/issue-395
lsawade 5039c13
Fixed installables for the python installation
lsawade a87e246
Conflicts resolved..
lsawade 9e22d75
this adds capability to add a source into the yaml tree
lsawade 4ac2762
Merge branch 'issue-228-anisotropy' into issue-394-src-rcv-python
lsawade 3262476
Merge branch 'issue-394-src-rcv-python' of github.com:PrincetonUniver…
lsawade bda25d2
Merge branch 'issue-394-src-rcv-python' into issue-395
lsawade be31354
Merge pull request #403 from PrincetonUniversity/issue-395
lsawade a9e95af
first commit to add receiver reading through YAML
lsawade 2f73146
Merge branch 'issue-394-src-rcv-python' into issue-406
lsawade cf1c2ca
Merged upstream
lsawade c85f503
I really do not like the way this is done. receivers can now have a s…
lsawade e6862aa
Put the onus of deciding what format the stations-file is into the re…
lsawade 57abbcc
Fixed grabbing the stations-file from the stations-node.
lsawade b232002
merged upstream updates
lsawade 87f5c8f
Complete merge
lsawade 070b27e
Updated wavefield snapshot naming, to zero pad for easier globbing
lsawade b8da2f7
Updated the docs to only refer to the read function that read from fi…
lsawade 9e3190e
Updated source-file to always be called sources. It can now be define…
lsawade 35f2ecd
Moved sources from databases to its own space in the runtime config
lsawade 7beffb0
Removed the -file from the stations-file descriptor
lsawade 0c96a69
Fixed kernel example
lsawade File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include "enumerations/specfem_enums.hpp" | ||
#include "yaml-cpp/yaml.h" | ||
#include <string> | ||
|
||
namespace specfem { | ||
namespace runtime_configuration { | ||
/** | ||
* @brief class to read source information | ||
* | ||
*/ | ||
class sources { | ||
public: | ||
sources(const std::string sources_file) { | ||
source_node = YAML::LoadFile(sources_file); | ||
}; | ||
|
||
sources(const YAML::Node &Node) { source_node = Node; }; | ||
|
||
/** | ||
* @brief Get the sources | ||
* | ||
* @return YAML::Node describing the sources | ||
*/ | ||
YAML::Node get_sources() const { return source_node; } | ||
|
||
protected: | ||
YAML::Node source_node; /// Node that contains sources information | ||
}; | ||
} // namespace runtime_configuration | ||
} // namespace specfem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Can you add @code and @Endcode doxygen directives here