Repository navigation
Eac/in memory catalogs and cli - #24
Merged
Merged
Conversation
… option Match.setReducedData() allows passing already-reduced DataFrames directly to a matcher without reading from disk or re-running reduceDataFrame(). ShearMatch.splitAndReduce() accepts a single joined catalog (all shear types concatenated with a type column), splits by type, reduces each subset, and stores via setReducedData — enabling an end-to-end in-memory workflow without intermediate per-type files. The shear match CLI command gains --joined-input and --shear-type-col options so the splitAndReduce path is accessible from the command line. Positional inputs and --joined-input are mutually exclusive. Generated with AI Co-Authored-By: SLAC AI
Add prepareRubinMDForMatch and prepareDESCMDForMatch to shear_utils: these are in-memory counterparts to splitRubinMDByTypeAndClean and splitDESCMDByTypeAndClean that return a joined DataFrame (with meta_step column) instead of writing per-type files. Add --catalog-format option (pre-processed / rubin-md / desc-md) to the shear match CLI command. For rubin-md the tract must also be supplied via --tract. The format drives which preparation function is called before splitAndReduce; pre-processed (the default) passes the file straight to splitAndReduce, relying on --shear-type-col to identify the type column. Generated with AI Co-Authored-By: SLAC AI
- docs/source/cli.rst: add narrative for shear match --joined-input modes, including a table of --catalog-format values (pre-processed/rubin-md/desc-md), required extra options, and three example command lines; fix pre-existing RST title-overline length warnings on the split-rubin/split-desc sections - src/hpmcm/__init__.py: add two new bullet points to the Additional features section describing setReducedData/splitAndReduce and the prepare* functions Generated with AI Co-Authored-By: SLAC AI
… notebooks Single self-contained script with a configuration block at the top for tract, file paths, shear parameters, and step-control flags. Steps: 1. Standardize Rubin MD / DESC MD / object / anacal catalogs 2. Rubin shear matching + joined object table 3. DESC shear matching + joined object table 4. WCS meta-matching across all catalogs Generated with AI Co-Authored-By: SLAC AI
Add n_unique == n_src check before sub_mask.all() in heirarchicalProcessObject so that early return only fires when all sources are uniquely matched AND within the pixel r2 cut, not just when distances are small. Generated with AI Co-Authored-By: SLAC AI
Add reduceObjectDF and reduceAnacalDF that operate on DataFrames and return DataFrames. The existing Table wrappers now delegate to these, keeping file I/O separate from the transformation logic. Generated with AI Co-Authored-By: SLAC AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.