Skip to content

Conversation

hpparvi
Copy link
Contributor

@hpparvi hpparvi commented Jun 25, 2025

This draft PR modernizes the documentation by switching to use sphinx_astropy.conf.v2 with pydata-sphinx-theme. The PR mainly rearranges existing documentation without adding much new text at the moment (I've written a bit about tracing, but this is a work in progress).

The PR is not ready for merging yet because some information is still duplicated, and some important topics (such as contributing) require further work.

@codecov
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

❌ Patch coverage is 95.22901% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.01%. Comparing base (61a5d4a) to head (11f2055).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
specreduce/wavecal1d.py 94.33% 23 Missing ⚠️
specreduce/line_matching.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   87.11%   89.01%   +1.89%     
==========================================
  Files          15       17       +2     
  Lines        1281     1803     +522     
==========================================
+ Hits         1116     1605     +489     
- Misses        165      198      +33     

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

@tepickering
Copy link
Contributor

not sure if it fits in this PR or a future one, but we have a lot of example docs implemented within docstrings in various parts of the code (i am one of the guilty parties). as part of a fuller refactor, we should decide whether to leave that as-is, migrate it to specific .rst files, or refactor all examples into notebooks or something notebook-based. i think the last option is the most useful going forward, but the most work up-front.

hpparvi and others added 28 commits July 15, 2025 12:57
… a sum of nearest-line distances between a theoretical line list and a transformed observed line list.
Renamed `wavecal.py` to `lswavecal1d.py` and refactored the `WavelengthSolution1D` class for improved clarity and functionality. Added new methods like `refine_fit`, `pix_to_wav`, and `wav_to_pix`, and modified existing ones to enhance flexibility and maintainability.
Introduce `WavelengthSolution2D` class for 2D wavelength calibration, extending functionality from 1D calibration.
… type hints, documentation, and method structure. Added new methods for calculating inverse transformations and derivatives. Enhanced plotting functionality with additional parameters and refined docstrings for clarity.
… `plim` parameter for pixel range control in plotting.
…, and modularity, while resolving associated issues. Enhanced methods for handling pixel-to-wavelength mappings, line-matching processes, and plotting capabilities. Added new functions and properties for better control over data and fit refinement.
…ns with setters to ensure proper masking and validation. Added `plot_lines_pix` and `plot_lines_wav` methods for enhanced modularity in plotting observed and theoretical lines.
…thods, updated property names, and enhanced plotting functionality.
…umentation for plotting and fitting methods.
…e maximum number of iterations for refining the pixel-to-wavelength transformation. This ensures the process adjusts until convergence or the specified iteration limit is reached.
hpparvi and others added 24 commits October 8, 2025 21:44
- Added `sphinx-copybutton` and `sphinx-design` to documentation dependencies in `pyproject.toml`.
- Improved content structure by renaming and reorganizing documentation files.
- Expanded "Contributing" and "Index" sections.
…action examples; updated `conf.py` with formatting adjustments and extended Sphinx documentation settings.
- Corrected typos and clarified text.
- Renamed `common.py` to `quickstart.py`.
- Updated function and variable names for consistency.
- Streamlined background subtraction and wavelength calibration workflows.
@hpparvi hpparvi force-pushed the documentation_facelift branch from 7ee2d16 to c7344e7 Compare October 21, 2025 21:25
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.

2 participants