astronomy-commons / hipscat

Hierarchical Progressive Survey Catalog
https://hipscat.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Support more types in json encoding. #279

Closed delucchi-cmu closed 1 month ago

delucchi-cmu commented 1 month ago

Change Description

Pretty-print healpix pixel, using string-ification.

Detect numpy types and convert to regular python types for friendlier printing.

Code Quality

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.66%. Comparing base (ace187d) to head (5f40c07).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #279 +/- ## ========================================== + Coverage 93.64% 93.66% +0.02% ========================================== Files 57 57 Lines 1966 1973 +7 ========================================== + Hits 1841 1848 +7 Misses 125 125 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 month ago
Before [ace187d9] After [70b3618c] Ratio Benchmark (Parameter)
125±0.3ms 125±1ms 1.01 benchmarks.time_test_alignment_even_sky
983±4μs 990±5μs 1.01 benchmarks.time_test_cone_filter_multiple_order
78.7±0.2ms 77.8±0.4ms 0.99 benchmarks.MetadataSuite.time_load_partition_info_order7
78.5±1ms 77.5±0.8ms 0.99 benchmarks.MetadataSuite.time_load_partition_join_info
13.5±0.3ms 13.3±0.1ms 0.99 benchmarks.Suite.time_inner_pixel_alignment
368±2ms 365±3ms 0.99 benchmarks.Suite.time_outer_pixel_alignment
41.9±0.4ms 41.7±0.7ms 0.99 benchmarks.Suite.time_pixel_tree_creation
18.9±0.4ms 18.6±0.2ms 0.98 benchmarks.MetadataSuite.time_load_partition_info_order6
84.7±2ms 82.7±2ms 0.98 benchmarks.Suite.time_paths_creation

Click here to view all benchmarks.