LSSTDESC / forecasting_validation

MIT License
0 stars 1 forks source link

galaxy_galaxy_lensing_cls Stuck for Specific Redshift Range and Resolution Combinations with include_all_correlations=True #10

Open nikosarcevic opened 2 weeks ago

nikosarcevic commented 2 weeks ago

Description: When running the galaxy_galaxy_lensing_cls method with include_all_correlations=True, the computation does not start for specific combinations of redshift_max and redshift_resolution. The process appears to be stuck, with no output or error message, and does not proceed with any calculations. This issue is specifically observed when all correlation pairs are included, but the method runs without issues if include_all_correlations=False.

Parameters Triggering the Issue: The issue occurs for the following parameter combinations (and potentially others):

Expected Behavior: The galaxy_galaxy_lensing_cls method should calculate the angular power spectra (Cls) for all pairs of lens and source bins when include_all_correlations=True, just as it does when include_all_correlations=False for specific pairs.

Steps to Reproduce:

  1. Set up the DataVectors instance with:

    redshift_max = 3.4
    redshift_resolution = 800 
    # or try these
    # redshift_max = 3.3
    # redshift_resolution = 350  
    forecast_year = "10"
    presets = Presets(redshift_max=redshift_max,
                    redshift_resolution=redshift_resolution,
                    forecast_year=forecast_year)
    dv = DataVectors(presets)
    
    ggl_cls = dv.galaxy_galaxy_lensing_cls(include_all_correlations=True)
    
  2. Call galaxy_galaxy_lensing_cls(include_all_correlations=True).
  3. Observe that the method does not start calculating Cls and does not produce output.

Observations:

Possible Causes: The problem may be related to:

Environment:

Additional Information: Debugging outputs show that the code fails to initiate calculations or print statements within the loop for the affected parameter combinations. There is no indication of memory overflow or warnings from ccl.angular_cl, which suggests the issue may lie in initialization when all correlations are requested.

nikosarcevic commented 2 weeks ago

update: the issue disappears for me when I switch to ccl v3.0.3 BUT the gsl integration error warning is present. this needs to be investigated.