Proposed LoggingEnsemble addition #194
pavlis
started this conversation in
Design & Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered a fundamental problem when I was redesigning and implementing a mspass version of the pwstack program. Ian, you know this algorithm well but Weiming the jargon would be mystery to you. The redisgn of pwstack for mspass, I am 100% sure, is a function that takes an input SeismogramEnsemble object and emits a different SeismogramEnsemble (the plane wave decomposition estimate from the input ensemble).
This revealed a fundamental flaw in handling this case. There is no easy way with the current Ensemble container to:
For that reason I sat down this morning and wrote the following template class I propose we add to Ensemble.h. Note I haven't begun to test this so it may contain syntax errors. Template syntax is a good example of modern computer languages being an "incantation". Point for now is to put this up discussion. Note there are a few other sentences after the lengthy code block below:
Note if we decide to include this I would advise:
I think these changes can be done with little to no change to the existing python code base. It will, however, require some changes to the pybind11 code for sure.
Beta Was this translation helpful? Give feedback.
All reactions