Skip to content

Commit

Permalink
Fix broken stuff after recent pyckles update
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Aug 28, 2024
1 parent 3cb6493 commit be6ad28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions scopesim_templates/stellar/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ def cluster(mass=1E3, distance=50000, core_radius=1, ra=RA0, dec=DEC0,
spec_types = cu.mass2spt(masses)
spec_types = cu.closest_pickles(spec_types)

# HACK: Delete this once pyckles issue #5 is solved!
# Check tests here to see if it works
for i, spt in enumerate(spec_types):
if spt == "M25V":
spec_types[i] = "M25V "

# 3. get spectra from pyckles
pickles = pyckles.SpectralLibrary("pickles", return_style="synphot")
unique_spts = set(spec_types)
Expand Down
2 changes: 1 addition & 1 deletion scopesim_templates/stellar/stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def stars(filter_name, amplitudes, spec_types, x, y, library="pyckles",
# for spt in zip(cat_spec_types)]
spectra = [Spextrum(modelclass=pickles_lib[spt]).scale_to_magnitude(
filter_curve=filter_name, amplitude=zero)
for spt in zip(cat_spec_types)]
for spt in cat_spec_types]

else:
spectra = [Spextrum(library + "/" + spec.lower()).scale_to_magnitude(
Expand Down

0 comments on commit be6ad28

Please sign in to comment.