Skip to content

Commit

Permalink
Merge pull request #266 from desihub/num_coeff
Browse files Browse the repository at this point in the history
adjust coeff size for legendre only for archetypes
  • Loading branch information
sbailey committed Jan 5, 2024
2 parents 14fd615 + aef2c73 commit 36ebd46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions py/redrock/external/desi.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,9 +851,9 @@ def rrdesi(options=None, comm=None):
dwave = targets.wavegrids()

ncamera = len(list(dwave.keys())) # number of cameras for given instrument
if args.archetypes_no_legendre:
if args.archetypes_no_legendre or args.archetypes is None:
if comm_rank == 0:
print('--archetypes-no-legendre argument is provided, will turn off all the Legendre related arguments')
print('no archetypes or --archetypes-no-legendre; will turn off all the Legendre related arguments')
archetype_legendre_prior = None
archetype_legendre_degree =0
archetype_legendre_percamera = False
Expand Down
2 changes: 1 addition & 1 deletion py/redrock/zfind.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def zfind(targets, templates, mp_procs=1, nminima=3, archetypes=None, priors=Non
if allzfit['spectype'].dtype != '<U6':
allzfit.replace_column('spectype',allzfit['spectype'].astype('<U6'))

if not per_camera:
if archetypes is None or not per_camera:
maxcoeff = np.max([t.template.nbasis for t in templates])
else:
if n_nearest is not None:
Expand Down

0 comments on commit 36ebd46

Please sign in to comment.