Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update process returns #57

Open
3 tasks done
raphaelshirley opened this issue Nov 13, 2024 · 0 comments · May be fixed by #58
Open
3 tasks done

Update process returns #57

raphaelshirley opened this issue Nov 13, 2024 · 0 comments · May be fixed by #58
Assignees
Labels
enhancement New feature or request

Comments

@raphaelshirley
Copy link
Collaborator

raphaelshirley commented Nov 13, 2024

We are going to update the lephare.process method to return a list of lephare.onesource objects for greater functionality.

See:

lephare-photoz/lephare#236

We will have to replace line

output, pdfs, zgrid = lp.process(

and have something like:

output,photozlist=lp.process(
    self.lephare_config, input, offsets=offsets
)
for i in range(ng):
    pdf = photozlist[i].pdfmap[11]
    pdf, zgrid = np.array(pdf.vPDF), np.array(pdf.xaxis)
    pdfs.append(pdf)
pdfs=np.array(pdfs)

This should be implemented when the lephare changes are merged and deployed.

  • I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
  • I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
  • If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.
@raphaelshirley raphaelshirley added the enhancement New feature or request label Nov 13, 2024
@raphaelshirley raphaelshirley self-assigned this Nov 13, 2024
@raphaelshirley raphaelshirley changed the title Short description Update process returns Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant