Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default column to properties #359

Merged
merged 6 commits into from
Sep 27, 2024
Merged

Add default column to properties #359

merged 6 commits into from
Sep 27, 2024

Conversation

delucchi-cmu
Copy link
Contributor

Change Description

Closes #322 and #338

Adds the named property for default columns, for access in downstream applications.

Adds name checks for the full list of known properties, according to the current values in this spreadsheet.

Sneaks in a change to remove the two methods in write_metadata module. One is unused, and the other is a thin wrapper.

NB: This will cause some breaking changes in hipscat-import@hats. Fixing in branch https://github.com/astronomy-commons/hipscat-import/tree/issue/393/properties

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (hats@8db8e58). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/hats/catalog/dataset/table_properties.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             hats     #359   +/-   ##
=======================================
  Coverage        ?   92.68%           
=======================================
  Files           ?       48           
  Lines           ?     1954           
  Branches        ?        0           
=======================================
  Hits            ?     1811           
  Misses          ?      143           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/hats/catalog/dataset/table_properties.py Show resolved Hide resolved
src/hats/catalog/partition_info.py Show resolved Hide resolved
src/hats/io/paths.py Show resolved Hide resolved
@delucchi-cmu delucchi-cmu merged commit f177019 into hats Sep 27, 2024
9 of 10 checks passed
@delucchi-cmu delucchi-cmu deleted the issue/322/defaults branch September 27, 2024 20:31
delucchi-cmu added a commit that referenced this pull request Oct 16, 2024
* Initial renaming (#352)

* Initial renaming

* A few more spots.

* Docs issues found in code review.

* Few more issues of bad find/replace...

* Update unit test data with changes to hipscat-import (#354)

* Update unit test data with changes to hipscat-import

* Add new pylint config.

* Create HIPS-style properties file (#358)

* Update unit test data with changes to hipscat-import

* Add new pylint config.

* catalog_info.json -> properties.

* Support hips-style space-delimited lists

* Good type hint

* Reduce duplication.

* Changes from code review

* Add default column to properties (#359)

* Add default column to properties

* Add fractional coverage on partition info

* Add convenience import.

* Clean it up

* Comment about square degrees.

* Add copy_and_update

* replace hipscat index

* update docs

* fix typo

* isort

* rename test hipscat id

* Improve reading/writing of fits file. (#361)

* Improve reading/writing of fits file.

* Pylint findings

* Set total_rows to non-none value. (#362)

* Code review comments.

* change healpix to index type

* update return type

* Clean up straggling instances of hips/hipscat (#369)

* Straggling instances of hips/hipscat

* A little more cleanup

* Insert dataset dir and use general ra/dec column names. (#377)

* Insert dataset dir and use general ra/dec column names.

* Update documentated directory structure.

* Code review comments.

---------

Co-authored-by: Sean McGuire <[email protected]>
Co-authored-by: Sean McGuire <[email protected]>
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