# Pre-commit actions
This commit is contained in:
@@ -80,8 +80,7 @@ class AbstractAgent(BaseModel, ABC):
|
|||||||
_registry: ClassVar[Dict[str, Type[AbstractAgent]]] = {}
|
_registry: ClassVar[Dict[str, Type[AbstractAgent]]] = {}
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
"""Initialise and setup agent logger"""
|
"""Initialise and setup agent logger."""
|
||||||
|
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self.logger: AgentLog = AgentLog(agent_name=kwargs["config"]["ref"])
|
self.logger: AgentLog = AgentLog(agent_name=kwargs["config"]["ref"])
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ class Network(SimComponent):
|
|||||||
:param links: Include link details in the output. Defaults to True.
|
:param links: Include link details in the output. Defaults to True.
|
||||||
:param markdown: Use Markdown style in table output. Defaults to False.
|
:param markdown: Use Markdown style in table output. Defaults to False.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if nodes:
|
if nodes:
|
||||||
table = PrettyTable(["Node", "Type", "Operating State"])
|
table = PrettyTable(["Node", "Type", "Operating State"])
|
||||||
if markdown:
|
if markdown:
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ from primaite.utils.validation.port import Port
|
|||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from primaite.simulator.system.core.software_manager import SoftwareManager
|
from primaite.simulator.system.core.software_manager import SoftwareManager
|
||||||
from primaite.simulator.network.hardware.base import Node
|
|
||||||
|
|
||||||
|
|
||||||
class SoftwareType(Enum):
|
class SoftwareType(Enum):
|
||||||
|
|||||||
Reference in New Issue
Block a user