Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jun 11, 2024
1 parent ea6c6a0 commit d07d868
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
11 changes: 5 additions & 6 deletions mcmc/mcmc_coordinator_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@
# limitations under the License.

from typing import List
import random
import numpy

from pacman.model.graphs.machine import MachineVertex
from pacman.model.resources import ConstantSDRAM
from spinn_utilities.overrides import overrides
from spinn_utilities.progress_bar import ProgressBar

from spinnman.model.enums import ExecutableType

from pacman.model.graphs.machine import MachineVertex
from pacman.model.placements import Placement
from pacman.model.resources import ConstantSDRAM

from spinn_front_end_common.abstract_models.abstract_has_associated_binary \
import AbstractHasAssociatedBinary
Expand All @@ -30,10 +33,6 @@
from spinn_front_end_common.data import FecDataView
from spinn_front_end_common.interface.ds import (
DataSpecificationGenerator, DataType)
from spinn_utilities.progress_bar import ProgressBar

import numpy
import random


class MCMCCoordinatorVertex(
Expand Down
10 changes: 5 additions & 5 deletions mcmc/mcmc_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from pacman.model.graphs.machine import MachineVertex
from pacman.model.resources import ConstantSDRAM
from enum import Enum
import numpy

from spinn_utilities.overrides import overrides

from spinnman.model.enums import ExecutableType

from pacman.model.graphs.machine import MachineVertex
from pacman.model.placements import Placement
from pacman.model.resources import ConstantSDRAM

from spinn_front_end_common.abstract_models.abstract_has_associated_binary \
import AbstractHasAssociatedBinary
Expand All @@ -34,9 +37,6 @@
from spinn_front_end_common.interface.buffer_management \
import recording_utilities

from enum import Enum
import numpy


class MCMCRegions(Enum):
""" Regions in the MCMC Data
Expand Down
3 changes: 3 additions & 0 deletions mcmc_examples/lighthouse/lighthouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@

def run_job(_thread_id, _model=model, _data_points=None,
_n_samples=n_samples, _seed=seed):
"""
Main method to run once or in multiple threads
"""
if _data_points is None:
_data_points = list(data_points)
samples = mcmc_framework.run_mcmc(
Expand Down

0 comments on commit d07d868

Please sign in to comment.