Skip to content

Commit

Permalink
Merge pull request #31 from hyperspy/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ericpre authored Mar 17, 2024
2 parents ce91b12 + 1f62299 commit cef270d
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.2
rev: v0.3.2
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion exspy/components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Components """
"""Components"""

from .eels_arctan import EELSArctan
from .eels_cl_edge import EELSCLEdge
Expand Down
1 change: 0 additions & 1 deletion exspy/components/eels_vignetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


class Vignetting(Component):

"""
Model the vignetting of the lens with a cos^4 law multiplied by lines on
the edges
Expand Down
1 change: 0 additions & 1 deletion exspy/components/pes_core_line_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def _calculate_shirley_background(values):


class PESCoreLineShape(Component):

""" """

def __init__(self, A=1.0, FWHM=1.0, origin=0.0, ab=0.0, shirley=0.0):
Expand Down
3 changes: 1 addition & 2 deletions exspy/docstrings/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
# along with eXSpy. If not, see <https://www.gnu.org/licenses/#GPL>.


"""Common docstring snippets for model.
"""Common docstring snippets for model."""

"""
from exspy.misc.eels.gosh_gos import _GOSH_DOI

GOS_PARAMETER = """GOS : 'hydrogenic', 'gosh', 'Hartree-Slater'.
Expand Down
1 change: 1 addition & 0 deletions exspy/misc/eels/eelsdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


"""This module provides tools to interact with The EELS Database."""

import requests
import logging

Expand Down
1 change: 0 additions & 1 deletion exspy/misc/eels/hartree_slater_gos.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@


class HartreeSlaterGOS(TabulatedGOS):

"""Read Hartree-Slater Generalized Oscillator Strength parametrized
from files.
Expand Down
1 change: 0 additions & 1 deletion exspy/misc/eels/hydrogenic_gos.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@


class HydrogenicGOS(BaseGOS):

"""Computes the K and L GOS using R. Egerton's routines.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion exspy/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models """
"""Models"""

from .edsmodel import EDSModel
from .edssemmodel import EDSSEMModel
Expand Down
1 change: 0 additions & 1 deletion exspy/models/edsmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def _get_scale(E1, E_ref1, fact):


class EDSModel(Model1D):

"""Build and fit a model of an EDS Signal1D.
Parameters
Expand Down
1 change: 0 additions & 1 deletion exspy/models/edssemmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class EDSSEMModel(EDSModel):

"""Build and fit a model to EDS data acquired in the SEM.
Parameters
Expand Down
1 change: 0 additions & 1 deletion exspy/models/edstemmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class EDSTEMModel(EDSModel):

"""Build and fit a model to EDS data acquired in the TEM.
Parameters
Expand Down
1 change: 1 addition & 0 deletions exspy/signals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
For dielectric function data with ``signal_dimension`` equal one. The signal
is unbinned by default.
"""

from .dielectric_function import DielectricFunction, LazyDielectricFunction
from .eds import EDSSpectrum, LazyEDSSpectrum
from .eds_sem import EDSSEMSpectrum, LazyEDSSEMSpectrum
Expand Down
2 changes: 0 additions & 2 deletions exspy/signals/dielectric_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@


class DielectricFunction(ComplexSignal1D):

"""Signal class for dielectric functions."""

_signal_type = "DielectricFunction"
Expand Down Expand Up @@ -172,7 +171,6 @@ def get_electron_energy_loss_spectrum(self, zlp, t):


class LazyDielectricFunction(DielectricFunction, LazyComplexSignal1D):

"""Lazy signal class for dielectric functions."""

__doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "DielectricFunction")
2 changes: 0 additions & 2 deletions exspy/signals/eds_sem.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class EDSSEMParametersUI(BaseSetMetadataItems):


class EDSSEMSpectrum(EDSSpectrum):

"""Signal class for EDS spectra measured in an SEM."""

_signal_type = "EDS_SEM"
Expand Down Expand Up @@ -316,7 +315,6 @@ def create_model(self, auto_background=True, auto_add_lines=True, *args, **kwarg


class LazyEDSSEMSpectrum(EDSSEMSpectrum, LazyEDSSpectrum):

"""Lazy signal class for EDS spectra measured in an SEM."""

__doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "EDSSEMSpectrum")
2 changes: 0 additions & 2 deletions exspy/signals/eds_tem.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class EDSTEMParametersUI(BaseSetMetadataItems):


class EDSTEMSpectrum(EDSSpectrum):

"""Signal class for EDS spectra measured in an TEM."""

_signal_type = "EDS_TEM"
Expand Down Expand Up @@ -984,7 +983,6 @@ def CL_get_mass_thickness(weight_percent, thickness):


class LazyEDSTEMSpectrum(EDSTEMSpectrum, LazyEDSSpectrum):

"""Lazy signal class for EDS spectra measured in an TEM."""

__doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "EDSTEMSpectrum")
2 changes: 0 additions & 2 deletions exspy/signals/eels.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class EELSTEMParametersUI(BaseSetMetadataItems):


class EELSSpectrum(Signal1D):

"""Signal class for EELS spectra."""

_signal_type = "EELS"
Expand Down Expand Up @@ -2026,7 +2025,6 @@ def vacuum_mask(


class LazyEELSSpectrum(EELSSpectrum, LazySignal1D):

"""Lazy signal class for EELS spectra."""

__doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "EELSSpectrum")

0 comments on commit cef270d

Please sign in to comment.