Skip to content

docs(csp-batch): doc comments for nebular_kernels and age_sums_z4 - #141

Merged
elijahmathews merged 3 commits into
feat/hotpath-split-filefrom
feat/hotpath-docs-comments
Nov 19, 2026
Merged

elijahmathews merged 3 commits into
feat/hotpath-split-filefrom
feat/hotpath-docs-comments

Conversation

@elijahmathews

@elijahmathews elijahmathews commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Stack: after #140. Comment-only change in opensps_csp_batch.f90 (the code is untouched; it builds).

A survey of the procedures of the file for doc comments found 15 with fewer than two comment lines before them; most are small routines with an adequate one-line doc. The two real gaps are filled:

  • nebular_kernels (389 lines, formerly one comment line): the doc lists its five numbered steps (the ionizing photons Q of the young spectra, the EUV rows with the escaping fraction, the continuum as a sum over the nebular ages with the large factors scaled out, the line luminosities, the line profiles) and what grid selects (cue does steps 3 - 5 itself).
  • age_sums_z4 (no comment): what the four slabs are, how the weights are formed, which template instance it calls.
  • batch_backward: the doc gets the stages of the reverse pass in order (magnitudes -> band fluxes, the observed frame, smoothing, AGN, dust emission, dust attenuation, the lines outside the spectrum, nebular emission, the age sums), the mirror of the stage index of the forward driver.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MXDRCs7ATQiqhT6RLPLXR5

@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.93%. Comparing base (5feeb3f) to head (6fb47a0).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           feat/hotpath-split-file     #141   +/-   ##
========================================================
  Coverage                    74.93%   74.93%           
========================================================
  Files                           51       51           
  Lines                        14481    14481           
  Branches                      6089     6089           
========================================================
  Hits                         10852    10852           
  Misses                        1482     1482           
  Partials                      2147     2147           

☔ 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.

@elijahmathews
elijahmathews marked this pull request as ready for review November 19, 2026 16:55
@elijahmathews
elijahmathews merged commit a53b792 into main Nov 19, 2026
28 of 30 checks passed
@elijahmathews
elijahmathews deleted the feat/hotpath-docs-comments branch November 19, 2026 17:49
elijahmathews added a commit that referenced this pull request Nov 19, 2026
Stack: after #141. Documentation only.

`doc/HOT_PATH_TOUR.md` gets a "Calling it yourself" section: a C example
from creating a context to one batch call (`opensps_context_create`,
`_setup`, `_get_nbands`, `_set_int`, `_compute_csp_batch`, with the
status codes), and a note on the Fortran entry point and the gradient
arguments with the tests that show every mode. The names and signatures
in the example were checked against `include/opensps.h` and
`doc/C_API.md`.

🤖 Generated with [Claude Code](https://claude.ai/code)

https://claude.ai/code/session_01MXDRCs7ATQiqhT6RLPLXR5

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

1 participant