Skip to content

Updating/Generalizing Light Curve to Tensor Loading#397

Open
malinadesai wants to merge 7 commits intonuclear-multimessenger-astronomy:mainfrom
malinadesai:main
Open

Updating/Generalizing Light Curve to Tensor Loading#397
malinadesai wants to merge 7 commits intonuclear-multimessenger-astronomy:mainfrom
malinadesai:main

Conversation

@malinadesai
Copy link
Contributor

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.

malinadesai and others added 7 commits June 26, 2025 17:52
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
@sahiljhawar
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants