Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Dec 18, 2024
1 parent 1ac43da commit a99ca02
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .cspell/custom-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ipympl
ipython
ipywidgets
irfft
isin
kernelspec
kwds
labview
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testing_multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
paths-ignore:
pyproject.toml

env:
UV_SYSTEM_PYTHON: true

jobs:
pytest:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ dmypy.json
*.nxs
*.pxp

# poetry
poetry.toml
# installation
specsanalyzer.egg-info
4 changes: 2 additions & 2 deletions specsanalyzer/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ def calculate_matrix_correction(

angle_axis = np.linspace(angle_low, angle_high, ny_pixels, endpoint=False)

mcp_position_mm_matrix = np.zeros([nx_pixels, ny_pixels])
angular_correction_matrix = np.zeros([nx_pixels, ny_pixels])
mcp_position_mm_matrix = np.zeros([nx_pixels, ny_pixels], dtype=float)
angular_correction_matrix = np.zeros([nx_pixels, ny_pixels], dtype=float)
e_correction = np.zeros(ek_axis.shape)

# create a meshgrid for vectorized evaluation
Expand Down
2 changes: 1 addition & 1 deletion specsscan/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def process_sweep_scan(
energy_indices = np.argwhere(energies.values).squeeze()
# filling target array using "nearest" method
target_energy = data.Ekin.sel(Ekin=converted.Ekin[energies > 0], method="nearest")
target_indices = np.argwhere(np.in1d(data.Ekin.values, target_energy.values)).squeeze()
target_indices = np.argwhere(np.isin(data.Ekin.values, target_energy.values)).squeeze()
data[:, target_indices] += converted[:, energy_indices].values

self.spa.print_msg = True
Expand Down

0 comments on commit a99ca02

Please sign in to comment.