Skip to content

Physics expansion and Docs overhaul for version update#98

Open
almilder wants to merge 52 commits intomainfrom
flux-work
Open

Physics expansion and Docs overhaul for version update#98
almilder wants to merge 52 commits intomainfrom
flux-work

Conversation

@almilder
Copy link
Copy Markdown
Collaborator

Added:

  • TS w gain
  • new BG algs
  • new background visualization
  • new timing visualization
  • interactive mode

Modified:

  • Re-enabled series mode
  • Visualization of fitting regions was improved
  • Complete overhaul of docs (updated to reflect current code options, added more details)
  • Rebuilt examples to work with current version

Avi and others added 30 commits May 22, 2025 16:13
Add the new transmission function for 3w TS
Modified looping structure to allow for initialization based on full previous runs
- Updated defaults.yaml and inputs.yaml for 1D configurations, adjusting parameters for ion and electron fitting ranges, smoothing methods, and optimizer settings.
- Enhanced the base.py distribution function to support different smoothing types (butterworth and hanning).
- Modified fitter.py to validate input configurations and ensure proper ordering of lineout and fit ranges.
- Refactored loops.py to implement a new optimization loop using Optax, allowing for more flexible fitting routines.
- Introduced multirun_angular_optax function for batch processing of angular Thomson scattering data.
- Updated loss_function.py to store auxiliary values during loss computation.
- Adjusted evaluate_background.py and lineouts.py to improve background processing and lineout calculations.
- Cleaned up postprocess.py to streamline data processing after fitting.
…s forward model bug, fixed input checker bug, fixed handling of m for arts
- Updated input parameters in YAML files for better clarity and consistency.
- Enhanced the `smooth1d` function in `base.py` to include additional convolution methods.
- Modified `angular_optax` function to track exit conditions and improve state saving.
- Adjusted plotting functions to handle zero data cases and updated log scaling.
- Ensured compatibility of distribution functions with new parameter structures.
modified spherical harmonic code to work for arbitrary order
Avi added 22 commits November 10, 2025 15:40
Started work on a simpler lineout background algorithm to prevent issues at 3 and 4w
…ocessing

- Added background subtraction option in defaults.yaml and inputs.yaml.
- Adjusted fitting ranges and parameters in inputs.yaml for improved accuracy.
- Enhanced loss function calculations to use amplitude norms.
- Introduced new interactive forward pass functionality in calc_vs_data.py.
- Updated ThomsonScatteringDiagnostic to handle new spectral types.
- Refined data processing in evaluate_background.py and postprocess.py.
…and common domain definition. Switched data visualizer to use shading instead of lines to denote ROI, and added a background comparison plot
- Moved spectrum loading options from `other.extraoptions` to `data` in various configuration files.
- Updated references in the codebase to reflect the new configuration structure.
- Ensured that fitting options for IAW and EPW are disabled if the corresponding spectrum is not loaded.
- Cleaned up redundant code and improved consistency across configuration files.
- Updated tutorial and input docs
- Created new documentation files for `tsadar.utils.process.warpcorr`, `tsadar.utils`, and `tsadar.utils.vector_tools` to enhance module visibility.
- Updated `getting_started.rst` to improve clarity and fix references to background algorithms.
- Refined input documentation for electron, ion, and general parameters in `inputs.rst`.
- Removed obsolete `spectrum.rst` file to clean up documentation.
- Refactored `load_ts_data.py` to handle CCD size and improve error handling for fiducial timing.
- Adjusted calibration values in `calibration.py` for improved accuracy.
- Enhanced `prepare.py` to include CCD size in data loading.
- Updated various functions in `plotters.py` and `lineouts.py` to streamline plotting and background selection processes.
- Improved Butterworth filter documentation in `base.py` for better clarity on parameters and returns.
Updated examples and example docs
…ching requirements for the forward model tests
@almilder almilder requested a review from joglekara April 24, 2026 21:20
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