Skip to content

v1.0.0 corresponding merge#79

Open
raphaelshirley wants to merge 8 commits into
mainfrom
issue/78/update_config
Open

v1.0.0 corresponding merge#79
raphaelshirley wants to merge 8 commits into
mainfrom
issue/78/update_config

Conversation

@raphaelshirley

@raphaelshirley raphaelshirley commented Oct 19, 2025

Copy link
Copy Markdown
Collaborator

Problem & Solution Description (including issue #)

This will be merged to deal with any issues that might be caused by the lephare version v1.0.0

lephare-photoz/lephare#356

We are going to propose some changes to the defaults to optimise for speed for runs on 20 billion objects.

Closes #78

  • reduce redshift grid to 0.02
  • reduce number of extinction laws
  • add a default config for estimating masses

Code Quality

  • My code follows the code style of this project
  • I have written unit tests or justified all instances of #pragma: no cover; in the case of a bugfix, a new test that breaks as a result of the bug has been added
  • My code contains relevant comments and necessary documentation for future maintainers; the change is reflected in applicable demos/tutorials (with output cleared!) and added/updated docstrings use the NumPy docstring format
  • Any breaking changes, described above, are accompanied by backwards compatibility and deprecation warnings

@raphaelshirley raphaelshirley self-assigned this Oct 19, 2025
@codecov

codecov Bot commented Oct 19, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.94%. Comparing base (7072a39) to head (a1e90da).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   92.85%   92.94%   +0.08%     
==========================================
  Files           2        2              
  Lines         168      170       +2     
==========================================
+ Hits          156      158       +2     
  Misses         12       12              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@johannct

Copy link
Copy Markdown
Collaborator

Only one bump extinction law perhaps? We need to check that it is ok though. EM_DISPERSION is almost guaranteed to have little effect on 6 bands.

@raphaelshirley

Copy link
Copy Markdown
Collaborator Author

We may want to add a second physical parameter config set. @olivierilbert can you send me a standard physical parameter config?

@olivierilbert

Copy link
Copy Markdown
Collaborator

Hello,
sorry, I didn't follow this development. Is the assesment that the code is to slow done after our reduction of the emission line dispersion, etc ? And we can still gain a lot of speed by just reducing the number of attenuation curve and E(B-V).

@raphaelshirley

Copy link
Copy Markdown
Collaborator Author

All I want to do is set a recommended config with a reasonable balance of speed and results. Currently I am just applying the changes we made in the last week. I will merge when we have settled on a recommendation but it would be good to also add the recommended physical parameter settings when we have them.

@olivierilbert

olivierilbert commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

For the physical parameters, I just did a run on the DP1 by curiosity. Using ZFIX YES and the full BC03 library, I get 20s for 8500 sources with my laptop for one CPU (M3 pro). of course, we need to time all these runs in a much more accurate way. I will send you an example of notebook. But we can also limit the size of the library (e.g. one attenuation law rather than 2).

@olivierilbert

Copy link
Copy Markdown
Collaborator

I can do some tests and decide what to remove. But on my side, I need to see how much I should remove. How far are we of what we need?

@johannct

Copy link
Copy Markdown
Collaborator

We need to get back to this and move forward to close the loop. This also relates to current modif proposals : see PR #84 and issue #80 .

@raphaelshirley

Copy link
Copy Markdown
Collaborator Author

SET ASCII NO everywhere

@raphaelshirley raphaelshirley changed the title Increase speed of runs v1.0.0 corresponding merge Jun 10, 2026
@raphaelshirley

raphaelshirley commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

@johannct We can think of what we want to be the ultimate config decision here to be merged when lephare v1.0.0 is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update recommended config

4 participants