Skip to content

Release 3 0 - #2

Merged
mpound merged 27 commits into
masterfrom
release_3_0
Aug 31, 2026
Merged

Release 3 0#2
mpound merged 27 commits into
masterfrom
release_3_0

Conversation

@mpound

@mpound mpound commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Update web site for pdrtpy release 3.0.1

mpound and others added 27 commits July 27, 2026 11:43
Documents the static-site/SSI architecture, the autogen model-page
generation workflow, and conventions around templates, includes, and CSS.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Filter ModelSet.all_sets() by name when -m is given. Also fixes two
pre-existing bugs that prevented the script from running at all: an
unterminated f-string debug print and a missing os.cpu_count() call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t level

Previously Pool.starmap dispatched one task per ModelSet, so -m <name>
(a single ModelSet) ran entirely on one core while the rest sat idle, and
uneven ModelSet sizes caused load imbalance. Flatten the work into one task
per (ModelSet, ratio) pair instead: register all ModelSets serially (cheap,
no plotting), submit every ratio across every selected ModelSet to a single
Pool, then aggregate the per-ratio results back into each ModelSet's
index.html. Each worker caches its ModelSet/ModelPlot instance across
ratios to avoid reloading FITS tables per task.

Also:
- Add -j/--jobs to control worker count (default: all cores); drop the
  hardcoded os.cpu_count()-2 reservation.
- Skip multiprocessing entirely in -q/--quick mode, which only needs to
  register ModelSets, not plot them.
- Fix a syntax error introduced in d32806c (ms.name="smc" instead of
  ms.name=="smc").
- Fix a latent bug where ms.keyname was mutated in-place for T_e (ionized
  gas) ratios and could leak into the tarball link on the ModelSet's index
  page if such a ratio was processed last; now tracked as a local variable
  per ratio instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Documents skip_modelset, Page, and its methods. A few parameters (z's
exact reference/units, the ratio identifier format) are marked with
TODO(Marc) placeholders where the meaning wasn't certain from the code
alone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mpound
mpound merged commit 2439c5d into master Aug 31, 2026
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