Skip to content

Commit

Permalink
Move to buildtools and pyproject.toml (#163)
Browse files Browse the repository at this point in the history
* move to buildtools and pproject.toml

* isolated build

* include for flat layout, reinstate setup.py

* add foreground init

* add more inits

* add bias init

* isolated build

* include for flat layout, reinstate setup.py

* include for flat layout, reinstate setup.py

* fix _bias naming error

* try restoring a test file

* restore kappa test data

* restore cash data

* restore bandpass test files

* codestyle

* setuptools_scm and remove astropy

* add missing os import

* Avoid `noqa F401`

* Sort imports

* Pack `cash`

* Pack `gaussian`

* Pack `poisson`

* Pack `ps`

* Sort imports

* Drop `setup.cfg` in favor of `pyproject.toml`

* Add common cosmology for testing

* Pass new fixed cosmology to tests

* Check specific value of likelihood rather than finite

* Fix cosmopower test

* Clean comments

* add ccl to include

* add testpaths

* try removing conftest

* try more verbosity

* add testpaths to package data

* testpaths must be array

* test source in coverage run

* test path to tests

* test include

* test python

* test specify files

* Re-create setup.cfg

* Add pythonpath

* try remove `cfg`

* Revert last two commits

* Fully revert commit `a41970a`

* change setup method of mflike test

* Add dependency tensorflow

* test explicit path to `soliket`

* Correct config file for `cov`

---------

Co-authored-by: Giacomo Galloni <[email protected]>
  • Loading branch information
itrharrison and ggalloni authored Jun 13, 2024
1 parent 0c9d26d commit ae60884
Show file tree
Hide file tree
Showing 108 changed files with 905 additions and 12,807 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# soliket specific
chains/

# macos
.DS_Store
.tmp

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
for module in MOCK_MODULES:
sys.modules[module] = mock.Mock()

import soliket # noqa F401
import soliket

__all__ = ['soliket']

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down
19 changes: 19 additions & 0 deletions docs/halo_model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
HaloModel (Halo Model Non-Linear Power Spectrum)
====

.. automodule:: soliket.halo_model.halo_model


HaloModel Theory
-----------

.. autoclass:: soliket.halo_model.HaloModel
:members:


pyhalomodel Halo Model
-----------

.. autoclass:: soliket.halo_model.HaloModel_pyhm
:exclude-members: initialize
:members:
1,001 changes: 0 additions & 1,001 deletions notebooks/dev/clusters.ipynb

This file was deleted.

Loading

0 comments on commit ae60884

Please sign in to comment.