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 @@ -18,7 +18,7 @@
# 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
args: [--markdown-linebreak-ext=md]
Expand Down Expand Up @@ -49,7 +49,7 @@ repos:

# Changes tabs to spaces
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
rev: v1.5.6
hooks:
- id: remove-tabs

Expand All @@ -64,7 +64,7 @@ repos:

# Autoremoves unused Python imports
- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
rev: v2.6.0
hooks:
- id: pycln
name: pycln (python)
Expand Down Expand Up @@ -103,12 +103,12 @@ repos:
)

# Python Formatting
- repo: https://github.com/psf/black
rev: 25.1.0 # Keep in sync with blacken-docs
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0 # Keep in sync with blacken-docs
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
rev: 1.20.0
hooks:
- id: blacken-docs
args: [--line-length=80]
Expand All @@ -128,7 +128,7 @@ repos:

# Checks the manifest for missing files (native support)
- repo: https://github.com/mgedmin/check-manifest
rev: "0.50"
rev: "0.51"
hooks:
- id: check-manifest
# This is a slow hook, so only run this if --hook-stage manual is passed
Expand Down
2 changes: 0 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
#
from datetime import date


# -- Import version ----------------------------------------------------------
from optimas import __version__ # noqa: E402


# -- Project information -----------------------------------------------------
project = "optimas"
project_copyright = "2023-%s, the optimas collaborators" % date.today().year
Expand Down
1 change: 0 additions & 1 deletion examples/hipace/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 0 additions & 1 deletion examples/ionization_injection/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 0 additions & 1 deletion examples/ionization_injection_mf/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 0 additions & 1 deletion examples/multi_stage/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 1 addition & 0 deletions examples/multitask_lpa_fbpic_waket/custom_fld_diags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
not to write to disk at every timestep
- Parallel output is not implemented for the moment
"""

import os
import numpy as np
from scipy.constants import c
Expand Down
1 change: 1 addition & 0 deletions examples/multitask_lpa_fbpic_waket/custom_ptcl_diags.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- The class implements memory buffering of the slices, so as
not to write to disk at every timestep
"""

import os
import math
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion examples/multitask_lpa_fbpic_waket/run_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import aptools.plasma_accel.general_equations as ge
from bunch_utils import trapezoidal_bunch


# Parammeters exposed to optimizer.
task = {{task}}
beam_i_1 = {{beam_i_1}}
Expand Down
1 change: 0 additions & 1 deletion examples/wake_t/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 0 additions & 1 deletion examples/wake_t_fbpic_mt/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from analysis_script import analyze_simulation


# Create VOCS object.
vocs = VOCS(
variables={
Expand Down
1 change: 0 additions & 1 deletion optimas/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .task import Task
from .trial import Trial, TrialStatus


__all__ = [
"Evaluation",
"Parameter",
Expand Down
1 change: 0 additions & 1 deletion optimas/evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .multitask_evaluator import MultitaskEvaluator
from .chain_evaluator import ChainEvaluator


__all__ = [
"FunctionEvaluator",
"TemplateEvaluator",
Expand Down
1 change: 0 additions & 1 deletion optimas/explorations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .base import Exploration


__all__ = ["Exploration"]
1 change: 0 additions & 1 deletion optimas/explorations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from optimas.utils.logger import get_logger
from optimas.utils.other import convert_to_dataframe


logger = get_logger(__name__)


Expand Down
1 change: 0 additions & 1 deletion optimas/generators/ax/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from optimas.generators.base import Generator
from gest_api.vocs import VOCS


# Disable Ax loggers to get cleaner output. In principle, setting
# `verbose_logging=False` in the `AxClient` should already avoid most of the
# logs, but this does not work when using 'spawn' multiprocessing.
Expand Down
1 change: 0 additions & 1 deletion tests/resources/template_simulation_script_moo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import numpy as np


# 2D function with multiple minima
f1 = -({{x0}} + 10 * np.cos({{x0}})) * ({{x1}} + 5 * np.cos({{x1}}))
f2 = -({{x0}} + 10 * np.cos({{x0}} + 10)) * ({{x1}} + 5 * np.cos({{x1}} - 5))
Expand Down
1 change: 0 additions & 1 deletion tests/test_ax_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from optimas.core import Task
from gest_api.vocs import VOCS


# Some tests will use threading (instead of multiprocessing) to be able to
# trigger failed trials based on a global counter.
threadLock = threading.Lock()
Expand Down
Loading