Skip to content

Comments

Make docs use autogenerated BSEDicts rather than manual ones#744

Merged
TomWagg merged 8 commits intoCOSMIC-PopSynth:developfrom
TomWagg:bsedicts
Feb 4, 2026
Merged

Make docs use autogenerated BSEDicts rather than manual ones#744
TomWagg merged 8 commits intoCOSMIC-PopSynth:developfrom
TomWagg:bsedicts

Conversation

@TomWagg
Copy link
Collaborator

@TomWagg TomWagg commented Feb 4, 2026

This fixes #736.

Basically, it just uses the cosmic-settings.json to make a tiny .rst file that just includes a BSEDict in an ipython directive that can be dropped into tutorials. It also does a similar thing for plotting directives, making it available as "default_BSEDict" in each.

Obviously tutorials can still write out custom ones if people want, but this should avoid some confusion when new stuff gets added.

I also got rid of In[XX] in tutorials where I needed to change things anyway, we don't need those and it avoids messing up the order.

@TomWagg TomWagg self-assigned this Feb 4, 2026
@TomWagg TomWagg added enhancement docs Improvements to the documentation labels Feb 4, 2026
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.82%. Comparing base (8772c07) to head (24f7adc).
⚠️ Report is 126 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #744      +/-   ##
===========================================
- Coverage    86.91%   77.82%   -9.09%     
===========================================
  Files           40       50      +10     
  Lines        25542    27436    +1894     
  Branches         0      920     +920     
===========================================
- Hits         22198    21350     -848     
- Misses        3344     5812    +2468     
- Partials         0      274     +274     

☔ View full report in Codecov by Sentry.
📢 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.

@TomWagg TomWagg merged commit 3a432a3 into COSMIC-PopSynth:develop Feb 4, 2026
5 of 6 checks passed
@TomWagg TomWagg deleted the bsedicts branch February 4, 2026 17:31
MarkGM02 pushed a commit to MarkGM02/COSMIC that referenced this pull request Feb 4, 2026
…PopSynth#744)

* move config files

* generate a BSEDict for rst files

* generate bsedict during docs build

* hide generated files

* more robust path, allow conversion to direct python

* make BSEDict available in plot directives

* use generated BSEDict everywhere

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

Labels

docs Improvements to the documentation enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make sure all BSEDict instances in docs are consistent

1 participant