Updating/Generalizing Light Curve to Tensor Loading#397
Open
malinadesai wants to merge 7 commits intonuclear-multimessenger-astronomy:mainfrom
Open
Updating/Generalizing Light Curve to Tensor Loading#397malinadesai wants to merge 7 commits intonuclear-multimessenger-astronomy:mainfrom
malinadesai wants to merge 7 commits intonuclear-multimessenger-astronomy:mainfrom
Conversation
replace outdated functions with more general ones that can take a directory of NMMA light curves and convert and save them as pytorch tensors
add cli option to convert light curves to pytorch tensors
removed global variable dependencies, added expander dim as a user tuneable parameter for the embedding
added in light curve normalization, list comprehension for detection limits and padding data, and slight code reorganization
added list functionality for detection limits and data fillers
Member
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 removed dependence on any local or global variables and also did some general code clean up to make the dataloading more general. the main function can now handle taking a full directory of light curves (can be any light curves, user can specify the label, dir, and injection file) and will turn that into a pytorch tensor with the option to save them. users can do just "varied" light curves (ie any light curves) but there is additional functionality to process fixed counterparts at the same time. also, adding a file that allows users to run this from the command line.