Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
*.ipynb
*.npy
.workspace/
.idea/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
build/
dist/
__pycache__/
*.egg-info/
*.egg
wheels/

# Virtual environments
.venv/
venv/
env/

# Test / coverage
.pytest_cache/
.coverage
htmlcov/

# IDE
.idea/
.vscode/

# OS
.DS_Store

# Generated example outputs
*.png
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] — 2026-05-03

### Added
- Initial public release.
- `compute_dnnu`, `compute_dnnu_from_predictor`, `compute_g2` top-level API.
- `IntegratorConfig` / `IntegrationResult` data classes.
- `InterpLogOmegaPCHIP` and `adaptive_simpson_interpolated` lower-level building blocks.
- Helpers: `maybe_log10f`, `clean_sort_unique`, `simpson_atol_from_dnnu_tol`, `g2_to_dnnu`.
- Constants module (`Neff0`, `Omega_nh2`, `ln10`).
- Optional Cobaya adapter `sagenet_dnnu.cobaya_theory.SageNetDnnuTheory` mirroring upstream `SageNetTheoryFinal` behaviour.
- 22 unit tests covering f-mode detection, input cleaning, tolerance round-trip, PCHIP edge clamping, adaptive Simpson on analytical integrands, end-to-end log-Gaussian validation, and irregular-grid robustness.
- GitHub Actions CI matrix on Python 3.9–3.12.
- Two runnable examples in `examples/`.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Y Luo
Copyright (c) 2026 SageNet dnnu contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading