Skip to content

v2.0 of zeus21!#41

Open
EmilieThelie wants to merge 25 commits intomainfrom
zeus21_hack
Open

v2.0 of zeus21!#41
EmilieThelie wants to merge 25 commits intomainfrom
zeus21_hack

Conversation

@EmilieThelie
Copy link
Copy Markdown
Collaborator

No description provided.

@JulianBMunoz
Copy link
Copy Markdown
Collaborator

@copilot update the function and class calls in tests.py so it's up to date with this branch

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

@copilot update the function and class calls in tests.py so it's up to date with this branch

Done in commit 97a4153. All test files have been updated to the v2.0 API:

  • test_inputs.py — uses new Cosmo_Parameters dataclass directly (no more Cosmo_Parameters_Input + runclass)
  • test_cosmology.py, test_correlations.py — updated construction calls and kmax_CLASS values
  • test_astrophysics.py — updated all class instantiation calls; updated power-spectrum checks to handle signed cross-spectra and the T21 zero-crossing that appears with PopIII
  • test_xrays.py — uses get_T21_coefficients.Xrays instead of removed xrays.py module
  • test_sfrd.py — replaces SFR_II/SFR_III standalone calls with SFRD_class.SFR() method; adds Correlations prerequisite for the PopIII+LW feedback path
  • test_maps.py — updated parameter construction
  • test_UVLFs.py — updated construction calls; skips min_t_formation_Myr test not yet in the dataclass

Two source-code fixes were also needed: np.trapznp.trapezoid in inputs.py (NumPy 2.0 removed np.trapz), and broken SFR_II/SFR_III calls in UVLFs.py replaced with SFRD_class.SFR(). All 15 tests now pass.

Copilot AI and others added 12 commits May 1, 2026 15:28
…it-tests-zooc21

Co-authored-by: JulianBMunoz <22434409+JulianBMunoz@users.noreply.github.com>
…lumping issues

Agent-Logs-Url: https://github.com/ZeusCosmo/Zeus21/sessions/398e6899-c0e5-43b6-a9b1-5d57b57f83d5

Co-authored-by: JulianBMunoz <22434409+JulianBMunoz@users.noreply.github.com>
By @slibanore and Alessandra Venditti, now LFs for UVLF and HaLF separately and in a LF.py file
to point to LFs.py not UVLFs.py
@EmilieThelie fixed small inconsistency
to point to LFs.py not UVLFs.py
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.

4 participants