diffstar 0.2.1__tar.gz → 0.2.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- diffstar-0.2.1/.github/workflows/tests.yml → diffstar-0.2.2/.github/workflows/linting.yml +4 -16
- diffstar-0.2.2/.github/workflows/tests.yml +81 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/CHANGES.rst +5 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/PKG-INFO +4 -4
- {diffstar-0.2.1 → diffstar-0.2.2}/README.md +3 -3
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/__init__.py +1 -2
- diffstar-0.2.2/diffstar/_version.py +1 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/PKG-INFO +4 -4
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/SOURCES.txt +1 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/top_level.txt +0 -1
- diffstar-0.2.1/diffstar/_version.py +0 -1
- {diffstar-0.2.1 → diffstar-0.2.2}/.coveragerc +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/.git_archival.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/.gitattributes +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/.gitignore +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/.readthedocs.yml +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/LICENSE.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/load_bpl.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/load_smah_data.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/tests/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/tests/test_load_bpl.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/defaults.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/fit_smah_helpers.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/fitting_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/param_clippers.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/stars.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_kernels_are_frozen.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_smah_helpers.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_param_clippers.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_stars.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/utils.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/gas_consumption.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/kernel_builders.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/main_sequence_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/quenching_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_frozen_diffstar_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_kernel_builders.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_quenching_kernels.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/mah_params_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/ms_params_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/q_params_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/sfh_table_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/t_table_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_ms_params_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_q_params_testing_v0.1.0.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/sfh.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/__init__.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_defaults.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_gas.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_lax_main_sequence.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_lax_sfh.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_quenching.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_sfh.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_utils.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_diffmah_params.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_dmhdt.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_dt.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_lgt.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_log_mah.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_sfh.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_ms_params.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_q_params.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/dt_bpl.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/halo_ids_test_sample.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/lgt_bpl.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/mah_params_test_sample.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/ms_u_params_test_sample.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/q_u_params_test_sample.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/sfh_test_sample.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/utils.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/dependency_links.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/requires.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/Makefile +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/make.bat +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/_static/README.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/citation.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/conf.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demo_diffstar_fitter.ipynb +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demo_diffstar_sfh.ipynb +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demos.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/index.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/installation.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/reference.rst +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/rtd_environment.yaml +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/pyproject.toml +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/requirements.txt +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/scripts/generate_unit_testing_data.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/scripts/history_fitting_script.py +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/setup.cfg +0 -0
- {diffstar-0.2.1 → diffstar-0.2.2}/setup.py +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: linting
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
@@ -26,25 +26,13 @@ jobs:
|
|
26
26
|
- name: configure conda and install code
|
27
27
|
shell: bash -l {0}
|
28
28
|
run: |
|
29
|
-
|
30
|
-
conda install --quiet \
|
29
|
+
mamba install --quiet \
|
31
30
|
--file=requirements.txt
|
32
31
|
python -m pip install --no-deps -e .
|
33
|
-
|
34
|
-
flake8
|
35
|
-
pytest \
|
36
|
-
pytest-xdist \
|
37
|
-
pytest-cov
|
32
|
+
mamba install -y -q \
|
33
|
+
flake8
|
38
34
|
|
39
35
|
- name: lint
|
40
36
|
shell: bash -l {0}
|
41
37
|
run: |
|
42
38
|
flake8 diffstar
|
43
|
-
|
44
|
-
- name: test
|
45
|
-
shell: bash -l {0}
|
46
|
-
run: |
|
47
|
-
pytest -v diffstar --cov --cov-report=xml
|
48
|
-
|
49
|
-
- name: Upload coverage reports to Codecov
|
50
|
-
uses: codecov/codecov-action@v3
|
@@ -0,0 +1,81 @@
|
|
1
|
+
name: tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch: null
|
5
|
+
schedule:
|
6
|
+
# Runs "every Monday & Thursday at 3:05am Central"
|
7
|
+
- cron: '5 8 * * 1,4'
|
8
|
+
push:
|
9
|
+
branches:
|
10
|
+
- main
|
11
|
+
pull_request: null
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
tests:
|
15
|
+
name: tests
|
16
|
+
runs-on: "ubuntu-latest"
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
with:
|
21
|
+
fetch-depth: 0
|
22
|
+
|
23
|
+
- uses: conda-incubator/setup-miniconda@v2
|
24
|
+
with:
|
25
|
+
python-version: 3.9
|
26
|
+
channels: conda-forge,defaults
|
27
|
+
channel-priority: strict
|
28
|
+
show-channel-urls: true
|
29
|
+
miniforge-version: latest
|
30
|
+
miniforge-variant: Mambaforge
|
31
|
+
use-mamba: true
|
32
|
+
|
33
|
+
- name: configure conda and install code
|
34
|
+
shell: bash -l {0}
|
35
|
+
run: |
|
36
|
+
conda config --set always_yes yes
|
37
|
+
mamba install --quiet \
|
38
|
+
--file=requirements.txt
|
39
|
+
python -m pip install --no-deps -e .
|
40
|
+
mamba install -y -q \
|
41
|
+
flake8 \
|
42
|
+
pytest \
|
43
|
+
pytest-xdist \
|
44
|
+
pytest-cov \
|
45
|
+
pip \
|
46
|
+
setuptools \
|
47
|
+
"setuptools_scm>=7,<8" \
|
48
|
+
python-build
|
49
|
+
python -m pip install --no-build-isolation --no-deps -e .
|
50
|
+
|
51
|
+
- name: test
|
52
|
+
shell: bash -l {0}
|
53
|
+
run: |
|
54
|
+
pytest -v diffstar --cov --cov-report=xml
|
55
|
+
|
56
|
+
- name: Upload coverage reports to Codecov
|
57
|
+
uses: codecov/codecov-action@v3
|
58
|
+
|
59
|
+
- name: test versions
|
60
|
+
shell: bash -el {0}
|
61
|
+
run: |
|
62
|
+
pip uninstall diffstar --yes
|
63
|
+
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1
|
64
|
+
|
65
|
+
rm -rf dist/*
|
66
|
+
python setup.py sdist
|
67
|
+
pip install --no-deps --no-build-isolation dist/*.tar.gz
|
68
|
+
pushd ..
|
69
|
+
python -c "import diffstar; assert diffstar.__version__ != '0.0.0'"
|
70
|
+
popd
|
71
|
+
pip uninstall diffstar --yes
|
72
|
+
|
73
|
+
rm -rf dist/*
|
74
|
+
python -m build --sdist . --outdir dist
|
75
|
+
pip install --no-deps --no-build-isolation dist/*.tar.gz
|
76
|
+
pushd ..
|
77
|
+
python -c "import diffstar; assert diffstar.__version__ != '0.0.0'"
|
78
|
+
popd
|
79
|
+
pip uninstall diffstar --yes
|
80
|
+
|
81
|
+
python -m pip install -v --no-deps --no-build-isolation -e .
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: diffstar
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: Differentiable Star Formation Histories
|
5
5
|
Author-email: Alex Alarcon <alexalarcongonzalez@gmail.com>
|
6
6
|
License: BSD 3-Clause License
|
@@ -47,7 +47,7 @@ Requires-Dist: h5py
|
|
47
47
|
## Installation
|
48
48
|
The latest release of diffstar is available for installation with either pip or conda-forge:
|
49
49
|
```
|
50
|
-
$ conda install diffstar
|
50
|
+
$ conda install -c conda-forge diffstar
|
51
51
|
```
|
52
52
|
|
53
53
|
Alternatively, to install diffstar into your environment from the source code:
|
@@ -58,10 +58,10 @@ $ pip install .
|
|
58
58
|
```
|
59
59
|
|
60
60
|
### Environment configuration
|
61
|
-
For a typical development environment
|
61
|
+
For a typical development environment with conda-forge:
|
62
62
|
|
63
63
|
```
|
64
|
-
$ conda create -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
64
|
+
$ conda create -c conda-forge -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
65
65
|
```
|
66
66
|
|
67
67
|
## Project data
|
@@ -3,7 +3,7 @@
|
|
3
3
|
## Installation
|
4
4
|
The latest release of diffstar is available for installation with either pip or conda-forge:
|
5
5
|
```
|
6
|
-
$ conda install diffstar
|
6
|
+
$ conda install -c conda-forge diffstar
|
7
7
|
```
|
8
8
|
|
9
9
|
Alternatively, to install diffstar into your environment from the source code:
|
@@ -14,10 +14,10 @@ $ pip install .
|
|
14
14
|
```
|
15
15
|
|
16
16
|
### Environment configuration
|
17
|
-
For a typical development environment
|
17
|
+
For a typical development environment with conda-forge:
|
18
18
|
|
19
19
|
```
|
20
|
-
$ conda create -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
20
|
+
$ conda create -c conda-forge -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
21
21
|
```
|
22
22
|
|
23
23
|
## Project data
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.2.2'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: diffstar
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: Differentiable Star Formation Histories
|
5
5
|
Author-email: Alex Alarcon <alexalarcongonzalez@gmail.com>
|
6
6
|
License: BSD 3-Clause License
|
@@ -47,7 +47,7 @@ Requires-Dist: h5py
|
|
47
47
|
## Installation
|
48
48
|
The latest release of diffstar is available for installation with either pip or conda-forge:
|
49
49
|
```
|
50
|
-
$ conda install diffstar
|
50
|
+
$ conda install -c conda-forge diffstar
|
51
51
|
```
|
52
52
|
|
53
53
|
Alternatively, to install diffstar into your environment from the source code:
|
@@ -58,10 +58,10 @@ $ pip install .
|
|
58
58
|
```
|
59
59
|
|
60
60
|
### Environment configuration
|
61
|
-
For a typical development environment
|
61
|
+
For a typical development environment with conda-forge:
|
62
62
|
|
63
63
|
```
|
64
|
-
$ conda create -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
64
|
+
$ conda create -c conda-forge -n diffit python=3.9 numpy numba flake8 pytest jax ipython jupyter matplotlib scipy h5py diffmah diffstar
|
65
65
|
```
|
66
66
|
|
67
67
|
## Project data
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.2.1'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_kernels_are_frozen.py
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_smah_helpers.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/mah_params_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/ms_params_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/q_params_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/sfh_table_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/t_table_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_ms_params_testing_v0.1.0.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_q_params_testing_v0.1.0.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_diffmah_params.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_log_mah.txt
RENAMED
File without changes
|
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_ms_params.txt
RENAMED
File without changes
|
{diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_q_params.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|