Skip to content
Merged
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
8f7f562
new scheme + Casey model
PabloCorcho Feb 2, 2026
3c05a7b
add broadcast function
PabloCorcho Feb 2, 2026
d07b4bb
add dust tests
PabloCorcho Feb 2, 2026
92d9dbd
place holder
PabloCorcho Feb 2, 2026
f8c6049
expand and debug new classes
PabloCorcho Feb 3, 2026
717495b
age-binned sed
PabloCorcho Feb 3, 2026
5ad8da4
refuse interpolation if target matches current wavelength grid
PabloCorcho Feb 3, 2026
b6de980
implement filter list
PabloCorcho Feb 3, 2026
b36c756
add docs and implement powerlaw dust extinction model
PabloCorcho Feb 3, 2026
0d70f69
final documentation tweaks
PabloCorcho Feb 3, 2026
cbd8a6e
galaxy sed minimal test
PabloCorcho Feb 3, 2026
05338a0
add age edges param
PabloCorcho Feb 3, 2026
40e890a
base sed class
PabloCorcho Feb 3, 2026
0ef280c
galaxy model class
PabloCorcho Feb 3, 2026
9393bf9
add new tests
PabloCorcho Feb 3, 2026
0b4c6c1
minimal test for age-binned sed
PabloCorcho Feb 3, 2026
ceeb205
update
PabloCorcho Feb 4, 2026
9a339b5
base model
PabloCorcho Feb 4, 2026
0db0784
inherit model
PabloCorcho Feb 4, 2026
004a2df
inherit model
PabloCorcho Feb 4, 2026
5e804fe
inherit model
PabloCorcho Feb 4, 2026
fd7b65d
add new check parameter
PabloCorcho Feb 4, 2026
6212729
safe backwards compatibility
PabloCorcho Feb 4, 2026
0bd3457
unit test for model base
PabloCorcho Feb 4, 2026
a739dd7
update docs
PabloCorcho Feb 4, 2026
a1b56ed
fix docs
PabloCorcho Feb 4, 2026
f077f9c
add name
PabloCorcho Feb 4, 2026
7732e8c
bugfix
PabloCorcho Feb 4, 2026
944edb6
update age-binned attenuation
PabloCorcho Feb 4, 2026
a3a6cc6
new dust unit tests
PabloCorcho Feb 4, 2026
e3b6011
add some initial checks
PabloCorcho Feb 4, 2026
e0416e1
add setter
PabloCorcho Feb 4, 2026
c303292
expand checkers
PabloCorcho Feb 4, 2026
f5575d0
implement all parameters
PabloCorcho Feb 4, 2026
5162aff
black
PabloCorcho Feb 4, 2026
167c7ca
remove plt
PabloCorcho Feb 4, 2026
0313995
testing
PabloCorcho Feb 4, 2026
a95b490
update parameter units handling
PabloCorcho Feb 5, 2026
ece76e6
update checkers
PabloCorcho Feb 5, 2026
b173908
refactore entire module
PabloCorcho Feb 5, 2026
c5407c5
add beta cem
PabloCorcho Feb 5, 2026
c42a71e
bugfix
PabloCorcho Feb 5, 2026
c53d8a8
test some names
PabloCorcho Feb 5, 2026
ca3bb35
add docstrings
PabloCorcho Feb 5, 2026
f55263c
add place holder
PabloCorcho Feb 8, 2026
fe2b824
remove dataclass
PabloCorcho Feb 8, 2026
b2ba280
refactor naming
PabloCorcho Feb 8, 2026
6b24324
add size property to mimick numpy
PabloCorcho Feb 8, 2026
8eed91f
bugfix
PabloCorcho Feb 8, 2026
e5a1455
informative error
PabloCorcho Feb 8, 2026
0e4adff
update tests
PabloCorcho Feb 8, 2026
6cd158b
update test
PabloCorcho Feb 8, 2026
ab887f7
add filter list wavelength range
PabloCorcho Feb 9, 2026
fe22cc1
test wavelength range
PabloCorcho Feb 9, 2026
b33e71a
handle units
PabloCorcho Feb 12, 2026
5effc4d
add realistic vranges
PabloCorcho Feb 12, 2026
c6d9f26
update comments
PabloCorcho Feb 12, 2026
ea72edf
add wavelength range of whole list
PabloCorcho Feb 12, 2026
a82f4d8
minimize warnings
PabloCorcho Feb 12, 2026
cc67740
add more tests
PabloCorcho Feb 12, 2026
70d4e6e
update/write docstrings
PabloCorcho Feb 12, 2026
e684c65
update parameter docs
PabloCorcho Feb 12, 2026
7eab7c6
remove unused code
PabloCorcho Feb 12, 2026
87f40c9
small checks
PabloCorcho Feb 12, 2026
5ef2de4
expand tests
PabloCorcho Feb 12, 2026
8df6f6b
remove plots
PabloCorcho Feb 12, 2026
63c040c
test galaxy class
PabloCorcho Feb 13, 2026
3873fc6
add class hints
PabloCorcho Feb 13, 2026
c81b7f3
update supported versions
PabloCorcho Feb 13, 2026
5964994
turn Parameter into a vanilla class
PabloCorcho Feb 13, 2026
3e3293c
update valid range of ssfr
PabloCorcho Feb 13, 2026
5182941
check if stellar source is provided
PabloCorcho Feb 13, 2026
82e072c
complete docstrings
PabloCorcho Feb 13, 2026
5b568b3
add more test
PabloCorcho Feb 13, 2026
6334f13
change assertion
PabloCorcho Feb 13, 2026
a03c77c
change assertion
PabloCorcho Feb 13, 2026
6602581
update test
PabloCorcho Feb 13, 2026
8c8f982
remove useless default unit
PabloCorcho Feb 13, 2026
3271a7d
remove unused imports
PabloCorcho Feb 13, 2026
38aacc5
update tests
PabloCorcho Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/pst/SSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,12 @@ def interpolate_sed(self, new_wl, verbose=True, log=False, **interp_kwargs):
----------
- new_wl: bin centers of the new interpolated points.
"""
if not isinstance(new_wl, units.Quantity):
new_wl = new_wl << self.wavelength.unit
new_wl = check_unit(new_wl, self.wavelength.unit)

if new_wl.size == self.wavelength.size and (
self.wavelength.value == new_wl.value).all():
print("[SSP] SSP already sampled in target wavelength grid")
return

if verbose:
print('[SSP] Interpolating SSP SEDs')
Expand Down
4 changes: 3 additions & 1 deletion src/pst/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from . import SSP
from . import observables
from . import models
from . import cem
#from . import models
from ._version import get_versions

__version__ = get_versions()["version"]

Loading
Loading