Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Change-Id: Ic57bba4a80cbad49a9fc2d7a55b3afd93b4b8af2
  • Loading branch information
Jaquier Aurélien Tristan committed Oct 10, 2023
1 parent c37a06a commit 897c7aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bluepyemodel/access_point/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
from bluepyemodel.evaluation.evaluator import LEGACY_PRE_PROTOCOLS
from bluepyemodel.evaluation.evaluator import PRE_PROTOCOLS
from bluepyemodel.evaluation.fitness_calculator_configuration import FitnessCalculatorConfiguration
from bluepyemodel.export_emodel.utils import get_output_path_from_metadata
from bluepyemodel.export_emodel.utils import get_hoc_file_path
from bluepyemodel.export_emodel.utils import get_output_path_from_metadata
from bluepyemodel.model.mechanism_configuration import MechanismConfiguration
from bluepyemodel.model.neuron_model_configuration import NeuronModelConfiguration
from bluepyemodel.tools.mechanisms import get_mechanism_currents
Expand Down
13 changes: 10 additions & 3 deletions bluepyemodel/tasks/emodel_creation/optimisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,13 @@ class ExportHoc(WorkflowTaskRequiringMechanisms, IPyParallelTask):
seed = luigi.IntParameter(default=1)
graceful_killer = multiprocessing.Event()

def __init__(self, *args, **kwargs):
""" """
super().__init__(*args, **kwargs)

# set self.batch_size here to easily handle it in the argparse argument passing
self.batch_size = self.access_point.pipeline_settings.optimisation_batch_size

def requires(self):
""" """

Expand Down Expand Up @@ -738,8 +745,6 @@ def requires(self):
@WorkflowTask.check_mettypes
def run(self):
"""Prepare self.args, then call bbp-workflow's IPyParallelTask's run()."""
# set self.batch_size here to easily handle it in the argparse argument passing
self.batch_size = self.access_point.pipeline_settings.optimisation_batch_size
attrs = [
"backend",
"emodel",
Expand All @@ -764,8 +769,8 @@ def remote_script(self):
import json

from bluepyemodel import access_point
from bluepyemodel.tools.multiprocessing import get_mapper
from bluepyemodel.export_emodel.export_emodel import export_emodels_sonata
from bluepyemodel.tools.multiprocessing import get_mapper

# -- parsing -- #
parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -898,6 +903,8 @@ class EModelCreation(WorkflowTask):
when there is more than 1 luigi worker. Exit loop if set.
"""

# pylint: disable=no-self-argument, not-callable

seed = luigi.IntParameter(default=1)
graceful_killer = multiprocessing.Event()

Expand Down
2 changes: 1 addition & 1 deletion bluepyemodel/tools/mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def compile_mechs_in_emodel_dir(mechanisms_directory):
mechanisms_dir (Path): path to the directory containing the
mod files to compile.
"""
# pylint: disable=broad-exception-caught
# pylint: disable=broad-except
cwd = os.getcwd()

try:
Expand Down

0 comments on commit 897c7aa

Please sign in to comment.