-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add functions to write g4gps spectra
- Loading branch information
Showing
4 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Test the exporting of G4GPS spectra.""" | ||
|
||
from __future__ import annotations | ||
|
||
import pint | ||
|
||
u = pint.get_application_registry() | ||
|
||
|
||
def test_g4gps_lar(tmp_path) -> None: | ||
import legendoptics.lar | ||
|
||
legendoptics.lar.g4gps_lar_emissions_spectrum(tmp_path / "lar.csv") | ||
|
||
|
||
def test_g4gps_pen(tmp_path) -> None: | ||
import legendoptics.pen | ||
|
||
legendoptics.pen.g4gps_pen_emissions_spectrum(tmp_path / "pen.csv") |