Skip to content

Conversation

@golmschenk
Copy link
Contributor

Resolves #9. Makes metadata download happen upon first use. Puts the data relative to where the user is running their program. Removes the metadata from the repository and uses the IPAC hosted version instead.

Puts the data relative to where the user is running their program.
Removes the metadata from the repository and uses the IPAC hosted version instead.
self.alert_id2 = self.metadata['alert_id2'].values[0]
self.alert_x2 = self.metadata['alert_x2'].values[0]
self.alert_y2 = self.metadata['alert_y2'].values[0]
self.ROW_IDX = self.metadata['ROW_IDX'].values[0]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seemed to be metadata rows that don't exist in the IPAC version and just seemed to increment with the light curves. I'm guessing these were an artifact that was adding during the original metadata file creation? I don't believe they are needed.

"tqdm>=4.66.3",
"pytest>=7.1.3",
"pytest-pycharm>=0.7.0",
"astropy>=6.0.0",
Copy link
Contributor Author

@golmschenk golmschenk Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added astropy because it includes a reader for the ipac data format. This makes it easy to convert that format to Pandas, and from there to .feather.

# Project specific

/.idea/
/data/metadata.ipac
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to track these data files in git.

Update the readme to no longer use the removed ROW_NUM.
@golmschenk golmschenk force-pushed the metadata_automatic_download branch from a745661 to 442f397 Compare April 27, 2025 23:02
@stelais stelais merged commit 1a76758 into stelais:main Apr 28, 2025
4 checks passed
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.

Improve metadata storage and access

2 participants