Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ichinii
Copy link
Collaborator

@ichinii ichinii commented Jul 16, 2025

Type of Change

  • Bug fix (non breaking change, fixing an issue)
  • New feature
  • Breaking change (fix or feature that causes existing functionality to not work as expected)
  • Documentation / Wiki update

Description

Now the recorded event's electric field is phase shifted according to the traveled path length. this enables the possibility for interference analysis


✅ Pre-Merge Checklist

Important

By requesting a review, you confirm this PR is complete from your side. Once approved, it may be merged by someone else. Both developers and reviewers must ensure the PR is truly ready for merge when all checks are green.

Please complete each item before requesting a review.

  • Code follows the project's coding standards
  • Unit tests for new functionality are added and pass
  • All existing tests pass
  • Resolved TODO Comments (prefer new issues instead)
  • Documentation, if applicable, including:
    • Doxygen comments for any new rayx-core API functions
    • Helpful inline comments where needed for clarity
    • Wiki pages, e.g. updated build instructions, new Element etc.
  • Commits:
    • Use clear and readable commit messages (e.g. Conventional commits)
    • Squash and rebase onto master if individual commits don’t add value
    • Ensure linear commit history (required by master)

@ichinii ichinii requested a review from fannyzotter July 16, 2025 12:35

/// Convert photon energy (eV) to wavelength (nm)
RAYX_FN_ACC
inline double energyToWaveLength(const double energy) { return inm2eV / energy; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Utils.cpp there already is the function hvlam(double x) that calculates the wavelength from the energy. Maybe delete it and switch to yours. Also the inm2eV canstant is available with more digits.

@ichinii ichinii force-pushed the feature/advance_electric_field branch 3 times, most recently from 8314ee8 to 0126922 Compare July 18, 2025 10:48
ichinii added 2 commits July 18, 2025 15:23
not actually advance, to ensure tests run at this point
@ichinii ichinii force-pushed the feature/advance_electric_field branch from 0126922 to cb4c454 Compare July 18, 2025 13:24
@fannyzotter
Copy link
Member

looks good :)

@ichinii ichinii merged commit 7c0792e into master Jul 22, 2025
6 checks passed
@ichinii ichinii deleted the feature/advance_electric_field branch July 22, 2025 11:56
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.

3 participants