Skip to content

Eac/in memory catalogs and cli - #24

Merged
eacharles merged 6 commits into
mainfrom
eac/in-memory-catalogs-and-cli
Oct 15, 2026
Merged

eacharles merged 6 commits into
mainfrom
eac/in-memory-catalogs-and-cli

Conversation

@eacharles

Copy link
Copy Markdown
Contributor

No description provided.

… 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
@eacharles
eacharles merged commit 3d2fe33 into main Oct 15, 2026
4 checks passed
@eacharles
eacharles deleted the eac/in-memory-catalogs-and-cli branch October 15, 2026 20:53
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.

1 participant