Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
args: [--safe, --line-length=100]
Expand All @@ -19,27 +19,27 @@ repos:
language_version: python3.11

- repo: https://github.com/pycqa/docformatter
rev: v1.7.6
rev: v1.7.7
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--config, pyproject.toml]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-tqdm]

- repo: https://github.com/pycqa/doc8
rev: v1.1.2
rev: v2.0.0
hooks:
- id: doc8
files: ^docs/.*\.(rst|md)$
args: [--ignore, D001]

- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8

Expand Down
7 changes: 2 additions & 5 deletions alea/ces_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from multihist import Hist1d
from alea.ces_transformation import Transformation


MINIMAL_ENERGY_RESOLUTION = 0.05


Expand Down Expand Up @@ -156,11 +155,9 @@ def _check_histogram(self, h: Hist1d):
histogram_max = np.max(h.bin_edges)
histogram_min = np.min(h.bin_edges)
if self.min_e > histogram_max or self.max_e < histogram_min:
raise ValueError(
f"The histogram edge ({histogram_min},{histogram_max}) \
raise ValueError(f"The histogram edge ({histogram_min},{histogram_max}) \
does not overlap with the analysis space ({self.min_e},{self.max_e}) \
remove this background please:)"
)
remove this background please:)")

def _get_transformations(self):
"""Create and return all transformations to be applied."""
Expand Down
1 change: 0 additions & 1 deletion alea/submitters/htcondor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from alea.submitter import Submitter
from alea.utils import TEMPLATE_RECORDS, load_yaml, dump_yaml


DEFAULT_IMAGE = "/cvmfs/singularity.opensciencegrid.org/xenonnt/base-environment:latest"
WORK_DIR = f"/scratch/{getpass.getuser()}/workflows"
TOP_DIR = Path(__file__).resolve().parents[2]
Expand Down
1 change: 0 additions & 1 deletion alea/submitters/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from alea.submitter import Submitter


# suggested default arguments for utilix.batchq.submit_job
# for XENONnT collaboration
BATCHQ_DEFAULT_ARGUMENTS = {
Expand Down
1 change: 0 additions & 1 deletion tests/test_gaussian_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from alea.examples import GaussianModel


gaussian_model_parameter_definition = {
"mu": {
"fit_guess": 0.0,
Expand Down
1 change: 0 additions & 1 deletion tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from .test_gaussian_model import gaussian_model_parameter_definition


COMPUTE_CONFIDENCE_INTERVAL = True


Expand Down
Loading