You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,31 @@ Code for producing fast simulations of the SZ effect for galaxy halos of varying
7
7
The code is structured as depicted here: 
8
8
The CMB simulations are handled by [DeepCMBSim](https://www.github.com/deepskies/deepcmbsim), based on [CAMB](https://camb.info), and further by [pixell](https://github.com/simonsobs/pixell). The SZ cluster simluations are done in `make_sz_cluster.py` and instrumental effects are added in `filters.py` and `noise.py`.
9
9
10
+
Documentation is available via [readthedocs](https://deepszsim.readthedocs.io/en/latest/).
11
+
10
12
## Quickstart
11
13
12
14
### Installation
13
15
14
-
We provide an environment specification file for `conda` or `mamba` users at `environment.yml`, which will produce a new virtual environment called `szsims` with appropriate versions of major python packages. With `conda`, this environment is created by `conda env create -f environment.yml`. With `micromamba` the `env` is omitted and a new environment is instead created with `micromamba create -f environment.yml`.
16
+
#### From `pypi`
15
17
16
-
The simulated CMB signal relies on `camb` and `pixell`, cosmology relies on `colossus`, and utilities for saving rely on `h5py`. These are specified in the `pyproject.toml` file.
18
+
The simplest way to install `deepszsim` is via PyPI, using
19
+
```commandline
20
+
pip install deepszsim
21
+
```
22
+
The project history and source files are available on PyPI [here](https://pypi.org/project/deepszsim/).
17
23
18
-
From the top-level directory, you can do `pip install .` to install the package.
24
+
#### From Source
25
+
26
+
We provide an environment specification file for `conda` or `mamba` users at `environment.yml`, which will produce a new virtual environment called `szsims` with appropriate versions of major python packages, after which you can install with `pip`. With `conda`, the workflow to create the environment, activate it, and install the package is
27
+
```
28
+
conda env create -f environment.yml
29
+
conda activate szsims
30
+
pip install .
31
+
```
32
+
(With `micromamba` the `env` is omitted and a new environment is instead created with `micromamba create -f environment.yml`)
33
+
34
+
The simulated CMB signal relies on `camb` and `pixell`, cosmology relies on `colossus`, and utilities for saving rely on `h5py`. These are specified in the `pyproject.toml` file.
19
35
20
36
### Usage
21
37
@@ -25,6 +41,10 @@ A full list of potential inputs is documented in `settings/config.yaml` and you
25
41
26
42
`dm_halo_dist.py` generates an array of mass and redshift. The functions in `make_sz_cluster.py` create pressure profiles, Compton-y, and SZ signal maps for a halo of a given mass and redshift, and produces the final simulated submaps. These submaps contain simulated CMB and simple instrument beam convolution from `simtools.py` and white noise from `noise.py`. Plotting tools are provided in `visualization.py`. Simulations of a large suite of clusters can be achieved easily with `simclusters.py`.
27
43
44
+
### Tests
45
+
46
+
Tests are provided in the `tests` directory. They are automatically run via CircleCI on pushes to the repository. Users can verify tests with `python -m pytest tests/*`.
47
+
28
48
### Example
29
49
30
50
Let's say you wanted to produce 100 mock halos distributed across the redshift range 0.2<z<0.4 and with masses in the range 1e14<M200<1e15. To generate these halos and produce their simulated maps with SZ signal (along with CMB signal and noise parameters as specified in `Settings/inputdata.yaml`) you would call
@@ -47,7 +67,7 @@ If you use this code in your research, please cite this GitHub repo and our JOSS
47
67
48
68
## Contributing
49
69
50
-
If you would like to contribute, please open a new [issue](https://github.com/deepskies/deepszsim/issues), and/or be in touch with the [authors](#contact)
70
+
If you would like to contribute, you find a bug, or you have a feature request, please open a new [issue](https://github.com/deepskies/deepszsim/issues), and/or be in touch with the [authors](#contact).
0 commit comments