Skip to content

BGS Observables update#119

Merged
epaillas merged 11 commits intocosmodesi-emc_obsfrom
cosmodesi-bgs_obs
Dec 15, 2025
Merged

BGS Observables update#119
epaillas merged 11 commits intocosmodesi-emc_obsfrom
cosmodesi-bgs_obs

Conversation

@SBouchard01
Copy link
Collaborator

To merge in #118

Reworks the BGS observables, as done in #105 to add the train/test split, control plots, enhance the densitysplit classes and the compression methods.

@SBouchard01 SBouchard01 added enhancement New feature or request Observables Related to acm.observables Urgent ! labels Dec 6, 2025
@SBouchard01 SBouchard01 linked an issue Dec 6, 2025 that may be closed by this pull request
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reworks the BGS observables to enhance functionality with train/test splits, control plots, improved density split classes, and updated compression methods. The changes migrate from the old TwoPointCorrelationFunction API to TwoPointEstimator, refactor the density split correlation implementation into a base class with specific subclasses, and add plotting capabilities.

  • Replaces old density split file (dsc_conf.py) with new modular implementation (density_split_correlation.py)
  • Adds train/test split support via test_filters parameter in compression methods
  • Introduces plot_observable methods for visualization with error bars and residuals
  • Updates data loading to use TwoPointEstimator and new file structure with phase/seed/HOD hierarchy
  • Enhances BaseObservableBGS with get_hod_from_files method for flexible HOD selection

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
acm/observables/bgs/tpcf.py Updated compression methods with new parameters (phase, seed, los), added train/test splitting, and introduced plot_observable for visualization
acm/observables/bgs/dsc_conf.py Deleted old density split correlation implementation
acm/observables/bgs/density_split_correlation.py New modular implementation with base class and two derived classes for quantile-galaxy and quantile-quantile correlations
acm/observables/bgs/base.py Enhanced with get_hod_from_files for flexible HOD selection, updated emulator methods for train/test compatibility, and improved compress_x logic
acm/observables/bgs/init.py Updated imports to reflect new density split class names

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SBouchard01 SBouchard01 mentioned this pull request Dec 6, 2025
@epaillas epaillas merged commit 49a989b into cosmodesi-emc_obs Dec 15, 2025
@SBouchard01 SBouchard01 deleted the cosmodesi-bgs_obs branch December 16, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Observables Related to acm.observables Urgent !

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update EMC Observables

2 participants

Comments