LSSTDESC / rail_astro_tools

Rail utility stages that depend on astronomy package such as healpy, astropy etc...
MIT License
0 stars 0 forks source link

Added GCRCatalog Creator. #11

Closed jfcrenshaw closed 1 year ago

jfcrenshaw commented 1 year ago

I added a Creator that returns a galaxy sample by reading from a GCR Catalog. It has config parameters for specifying the columns you want and filters to apply to the catalog. It then puts the catalog into a pandas DataFrame, and subsamples to get the desired number of galaxies.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.65% :tada:

Comparison is base (a14ae2f) 79.75% compared to head (05feb86) 80.40%. Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11 +/- ## ========================================== + Coverage 79.75% 80.40% +0.65% ========================================== Files 6 7 +1 Lines 662 684 +22 ========================================== + Hits 528 550 +22 Misses 134 134 ``` | [Files Changed](https://app.codecov.io/gh/LSSTDESC/rail_astro_tools/pull/11?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LSSTDESC) | Coverage Δ | | |---|---|---| | [src/rail/creation/engines/gcr\_engine.py](https://app.codecov.io/gh/LSSTDESC/rail_astro_tools/pull/11?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LSSTDESC#diff-c3JjL3JhaWwvY3JlYXRpb24vZW5naW5lcy9nY3JfZW5naW5lLnB5) | `100.00% <100.00%> (ø)` | |

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