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.
Files changed (96) hide show
  1. diffstar-0.2.1/.github/workflows/tests.yml → diffstar-0.2.2/.github/workflows/linting.yml +4 -16
  2. diffstar-0.2.2/.github/workflows/tests.yml +81 -0
  3. {diffstar-0.2.1 → diffstar-0.2.2}/CHANGES.rst +5 -0
  4. {diffstar-0.2.1 → diffstar-0.2.2}/PKG-INFO +4 -4
  5. {diffstar-0.2.1 → diffstar-0.2.2}/README.md +3 -3
  6. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/__init__.py +1 -2
  7. diffstar-0.2.2/diffstar/_version.py +1 -0
  8. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/PKG-INFO +4 -4
  9. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/SOURCES.txt +1 -0
  10. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/top_level.txt +0 -1
  11. diffstar-0.2.1/diffstar/_version.py +0 -1
  12. {diffstar-0.2.1 → diffstar-0.2.2}/.coveragerc +0 -0
  13. {diffstar-0.2.1 → diffstar-0.2.2}/.git_archival.txt +0 -0
  14. {diffstar-0.2.1 → diffstar-0.2.2}/.gitattributes +0 -0
  15. {diffstar-0.2.1 → diffstar-0.2.2}/.gitignore +0 -0
  16. {diffstar-0.2.1 → diffstar-0.2.2}/.readthedocs.yml +0 -0
  17. {diffstar-0.2.1 → diffstar-0.2.2}/LICENSE.rst +0 -0
  18. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/__init__.py +0 -0
  19. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/load_bpl.py +0 -0
  20. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/load_smah_data.py +0 -0
  21. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/tests/__init__.py +0 -0
  22. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/data_loaders/tests/test_load_bpl.py +0 -0
  23. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/defaults.py +0 -0
  24. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/__init__.py +0 -0
  25. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/fit_smah_helpers.py +0 -0
  26. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/fitting_kernels.py +0 -0
  27. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/param_clippers.py +0 -0
  28. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/stars.py +0 -0
  29. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/__init__.py +0 -0
  30. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_kernels.py +0 -0
  31. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_kernels_are_frozen.py +0 -0
  32. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_fitting_smah_helpers.py +0 -0
  33. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_param_clippers.py +0 -0
  34. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/tests/test_stars.py +0 -0
  35. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/fitting_helpers/utils.py +0 -0
  36. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/__init__.py +0 -0
  37. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/gas_consumption.py +0 -0
  38. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/kernel_builders.py +0 -0
  39. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/main_sequence_kernels.py +0 -0
  40. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/quenching_kernels.py +0 -0
  41. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/__init__.py +0 -0
  42. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_frozen_diffstar_kernels.py +0 -0
  43. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_kernel_builders.py +0 -0
  44. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/test_quenching_kernels.py +0 -0
  45. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/mah_params_testing_v0.1.0.txt +0 -0
  46. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/ms_params_testing_v0.1.0.txt +0 -0
  47. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/q_params_testing_v0.1.0.txt +0 -0
  48. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/sfh_table_testing_v0.1.0.txt +0 -0
  49. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/t_table_testing_v0.1.0.txt +0 -0
  50. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_ms_params_testing_v0.1.0.txt +0 -0
  51. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/kernels/tests/testing_data/u_q_params_testing_v0.1.0.txt +0 -0
  52. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/sfh.py +0 -0
  53. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/__init__.py +0 -0
  54. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_defaults.py +0 -0
  55. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_gas.py +0 -0
  56. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_lax_main_sequence.py +0 -0
  57. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_lax_sfh.py +0 -0
  58. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_quenching.py +0 -0
  59. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_sfh.py +0 -0
  60. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/test_utils.py +0 -0
  61. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_diffmah_params.txt +0 -0
  62. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_dmhdt.txt +0 -0
  63. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_dt.txt +0 -0
  64. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_lgt.txt +0 -0
  65. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_log_mah.txt +0 -0
  66. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_sfh.txt +0 -0
  67. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_ms_params.txt +0 -0
  68. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/default_params_test_u_q_params.txt +0 -0
  69. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/dt_bpl.txt +0 -0
  70. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/halo_ids_test_sample.txt +0 -0
  71. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/lgt_bpl.txt +0 -0
  72. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/mah_params_test_sample.txt +0 -0
  73. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/ms_u_params_test_sample.txt +0 -0
  74. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/q_u_params_test_sample.txt +0 -0
  75. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/tests/testing_data/sfh_test_sample.txt +0 -0
  76. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar/utils.py +0 -0
  77. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/dependency_links.txt +0 -0
  78. {diffstar-0.2.1 → diffstar-0.2.2}/diffstar.egg-info/requires.txt +0 -0
  79. {diffstar-0.2.1 → diffstar-0.2.2}/docs/Makefile +0 -0
  80. {diffstar-0.2.1 → diffstar-0.2.2}/docs/make.bat +0 -0
  81. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/_static/README.txt +0 -0
  82. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/citation.rst +0 -0
  83. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/conf.py +0 -0
  84. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demo_diffstar_fitter.ipynb +0 -0
  85. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demo_diffstar_sfh.ipynb +0 -0
  86. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/demos.rst +0 -0
  87. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/index.rst +0 -0
  88. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/installation.rst +0 -0
  89. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/reference.rst +0 -0
  90. {diffstar-0.2.1 → diffstar-0.2.2}/docs/source/rtd_environment.yaml +0 -0
  91. {diffstar-0.2.1 → diffstar-0.2.2}/pyproject.toml +0 -0
  92. {diffstar-0.2.1 → diffstar-0.2.2}/requirements.txt +0 -0
  93. {diffstar-0.2.1 → diffstar-0.2.2}/scripts/generate_unit_testing_data.py +0 -0
  94. {diffstar-0.2.1 → diffstar-0.2.2}/scripts/history_fitting_script.py +0 -0
  95. {diffstar-0.2.1 → diffstar-0.2.2}/setup.cfg +0 -0
  96. {diffstar-0.2.1 → diffstar-0.2.2}/setup.py +0 -0
@@ -1,4 +1,4 @@
1
- name: tests
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
- conda config --set always_yes yes
30
- conda install --quiet \
29
+ mamba install --quiet \
31
30
  --file=requirements.txt
32
31
  python -m pip install --no-deps -e .
33
- conda install -y -q \
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,3 +1,8 @@
1
+ 0.2.2 (2023-10-08)
2
+ ------------------
3
+ - Fix forgotten import so that diffstar.__version__ now works
4
+
5
+
1
6
  0.2.1 (2023-09-27)
2
7
  ------------------
3
8
  - Implement floor at SFR_MIN in all computations of SFH
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diffstar
3
- Version: 0.2.1
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 in conda:
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 in conda:
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
@@ -1,7 +1,6 @@
1
1
  """
2
2
  """
3
3
  # flake8: noqa
4
-
5
-
4
+ from ._version import __version__
6
5
  from .kernels import get_ms_sfh_from_mah_kern, get_sfh_from_mah_kern
7
6
  from .sfh import sfh_galpop, sfh_singlegal
@@ -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.1
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 in conda:
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
@@ -10,6 +10,7 @@ pyproject.toml
10
10
  requirements.txt
11
11
  setup.cfg
12
12
  setup.py
13
+ .github/workflows/linting.yml
13
14
  .github/workflows/tests.yml
14
15
  diffstar/__init__.py
15
16
  diffstar/_version.py
@@ -1,3 +1,2 @@
1
- build
2
1
  diffstar
3
2
  dist
@@ -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