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 ac9c5c5 commit 1921ccb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
3 changes: 3 additions & 0 deletions mcmc/mcmc_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@


class MCMCModel(object, metaclass=AbstractBase):
"""
Base class frr Markov chain Monte Carlo models
"""

@abstractmethod
def get_parameters(self) -> List[MCMCParameter]:
Expand Down
6 changes: 6 additions & 0 deletions mcmc/mcmc_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ def __init__(self, value, data_type):

@property
def value(self):
"""
The value of the parameter
"""
return self._value

@property
def data_type(self):
"""
The numpy data type of the parameter
"""
return self._data_type
14 changes: 7 additions & 7 deletions mcmc/mcmc_root_finder_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
# 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 spinn_utilities.overrides import overrides

from pacman.model.placements import Placement
from enum import Enum

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
from spinn_front_end_common.abstract_models\
.abstract_generates_data_specification \
import AbstractGeneratesDataSpecification
from spinn_front_end_common.interface.ds import DataSpecificationGenerator

from enum import Enum


class MCMCRootFinderRegions(Enum):
""" Regions in the MCMCRootFinder Data
"""
Expand Down
9 changes: 9 additions & 0 deletions mcmc/mcmc_state_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@ def __init__(self, name, initial_value, data_type):

@property
def name(self):
"""
The name of the variable
"""
return self._name

@property
def initial_value(self):
"""
"""
return self._initial_value

@property
def data_type(self):
"""
The numpy data type of the variable.
"""
return self._data_type

0 comments on commit 1921ccb

Please sign in to comment.