Open
Conversation
- Added multi_shadow_find - Added normalize_product function to normalize the product of location_likelihoods. - Added plot_multi_shadows function to plot the output of multi_shadow_find. - Added unit test for multi_shadow_find in test_shadowfinder.py. - Ensured that the unit test checks the type, shape, and values of the normalized output. - Code untested. tests may not pass.
Author
|
@GalenReich this PR is a bit stale, but I could revive it if there's still interest in this requirement. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I have added functionality to allow users to input the details of multiple shadows taken at the same location across timestamps. This should allow users to narrow down the possible locations. I implement multiprocessing across cores for performance. This requires adding multiprocessing modules to the dependencies.
This is accomplished through two new static functions in shadowfinder.py
multi_shadow_findand
plot_multi_shadowsI refactored the
ShadowFinder().plot_shadowsfunction to separate out some of the plotting functionality into ShadowFinder()._plot_shadows. This enables code re-use inplot_shadows.unit tests and example
The example script is used to visualize that the results make logical sense. I show that this can be applied to three shadows, although in principle, it should scale to any number.
Example: three shadows across different times with local time formats.