Skip to content

Commit 2716aa0

Browse files
committed
include python 3.14
1 parent c5fce52 commit 2716aa0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
max-parallel: 5
2222
matrix:
2323

24-
python-version: ['3.10', '3.11', '3.12', '3.13']
24+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2525

2626
steps:
2727
- uses: actions/checkout@v3

pyTEMlib/eels_tools/low_loss_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def kroeger_core(e_data, a_data, eps_data, acceleration_voltage_kev, thickness,
426426
return P, P*scale*1e2,p_vol*1e2, p_simple*1e2
427427
428428
429-
$d^2P/(dEd\\Omega) = \\frac{1}{\\pi^2 a_0 m_0 v^2} \\Im \left[ \\frac{t\\mu^2}{\\varepsilon \\phi^2 } \right]
429+
$d^2P/(dEd\\Omega) = \\frac{1}{\\pi^2 a_0 m_0 v^2} \\Im \\left[ \\frac{t\\mu^2}{\\varepsilon \\phi^2 } \\right]
430430
431431
# Internally everything is calculated in SI units
432432
# acceleration_voltage_kev = 200 #keV

tests/test_utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def test_lorentz_peak_normalization():
3535
def test_gauss_zero_width_returns_zeros():
3636
x = np.linspace(-5, 5, 11)
3737
p = [0.0, 1.0, 0.0] # p[2] == 0 should yield zeros
38-
y = utilities.gauss(x, p)
38+
y = utilities.gauss(x, np.array(p))
3939
assert np.allclose(y, 0.0)
4040

4141

4242
def test_gauss_peak_at_center():
4343
x = np.linspace(-5, 5, 101)
4444
p = [0.0, 3.0, 1.2] # mean=0, amplitude=3
45-
y = utilities.gauss(x, p)
45+
y = utilities.gauss(x,np.array(p))
4646
# maximum value should be close to amplitude
4747
assert pytest.approx(3.0, rel=1e-5) == float(np.max(y))
4848
# center value equals maximum

0 commit comments

Comments
 (0)