Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/desihub/redrock into legend…
Browse files Browse the repository at this point in the history
…re_nnls_merge_with_main

Resolved conflicts
  • Loading branch information
craigwarner-ufastro committed May 21, 2024
2 parents a4a9531 + ca78381 commit 425d3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/redrock/archetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ def get_best_archetype(self,target,weights,flux,wflux,dwave,z, per_camera, n_nea
"""
spectra = target.spectra
nleg = target.nleg
bands = None
legendre = target.legendre(nleg=nleg, use_gpu=use_gpu) #Get previously calculated legendre
solve_method = self._solver_method #get solve method from archetype class instead of passing as arg
bands = target.bands
Expand Down Expand Up @@ -379,6 +378,7 @@ def get_best_archetype(self,target,weights,flux,wflux,dwave,z, per_camera, n_nea
if (trans[hs] is not None):
#Only multiply if trans[hs] is not None
binned[hs] *= arrtype.asarray(trans[hs][:,None])

if per_camera:
#Use per_camera_coeff_with_least_square_batch which has all logic associated with BVLS/NNLS solver methods
if (use_gpu):
Expand Down

0 comments on commit 425d3fc

Please sign in to comment.