Skip to content

Commit b3dacd9

Browse files
author
jngaravitoc
committed
fixing indentation
1 parent 2d0ce71 commit b3dacd9

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2121
- Renamed `basis_build` folder to match pyEXP naming conventions.
2222
- `basis` module refactored.
2323
- Moved `profiles.py` from `basis` to `utils/`.
24+
- CI now checks python versions up to 3.13
2425

2526
### Fixed
2627
- Fixed a typo in `make_model`.
2728
- Prevented `log10` of zero in density smoothing.
2829

30+
### Deprecated
31+
- No support for python 3.9
32+
- No support for numpy <2.0

EXPtools/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from .basis.profiles import Profiles
33
from .basis.basis_utils import load_basis, make_basis, write_config
44
from .basis.makemodel import make_model
5-
#from .ios.ios import exp_coefficients
65
from .utils.halo import ICHernquist
7-
from .visuals import Grid3D
6+
from .visuals import Grid3D, use_exptools_style
87

98
# Declare the public API
109
__all__ = [
@@ -17,5 +16,6 @@
1716
"ICHernquist",
1817
"load_basis",
1918
"Grid3D",
19+
"use_exptools_style"
2020
]
2121

EXPtools/utils/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
from .profiles import Profiles, evaluate_density_profile
12
from . import halo
23
from . import coefficients
34
from . import indexing
45
from . import units
6+
7+
__all__ = ["Profiles", "evaluate_density_profile", "halo", "coefficients", "indexing", "units"]
8+

EXPtools/utils/profiles.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ def two_power_density_with_rolloff(self, rcen, wcen):
113113
"""
114114
prefac = 0.5 * (1.0 - special.erf((self.ra - rcen) / wcen))
115115
return prefac * self.amp * self.ra ** -self.alpha * (1 + self.ra) ** (-self.beta + self.alpha)
116-
117-
118-
119-
def evaluate_density_profile(radii, amplitude, scale_radius, profile_func="power_halo", **kwargs):
116+
117+
def evaluate_density_profile(radii, amplitude, scale_radius, profile_func="power_halo", **kwargs):
120118
"""
121119
Evaluate a dark matter density profile using any method of the Profiles class.
122120

0 commit comments

Comments
 (0)