Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e724a160
"samples/cookbook/regression/__init__.py" did not exist on "32ab5a58dd3714d0747da6993a01315dadbf0e0f"
Unverified
Commit
e724a160
authored
Oct 01, 2024
by
Jakob Görgen
Browse files
removed unused code in simulator base
parent
bebefc61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
experiments/simbricks/orchestration/simulation/base.py
experiments/simbricks/orchestration/simulation/base.py
+0
-34
No files found.
experiments/simbricks/orchestration/simulation/base.py
View file @
e724a160
...
...
@@ -184,40 +184,6 @@ class Simulator(utils_base.IdObj):
return
False
return
True
# # TODO: remove
# def _get_my_interface(self, chan: sys_conf.Channel) -> sys_conf.Interface:
# interface = None
# for inter in chan.interfaces():
# if inter.component in self._components:
# assert interface is None
# interface = inter
# if interface is None:
# raise Exception(
# "unable to find channel interface for simulators specification"
# )
# return interface
# # TODO: remove
# def _get_socket(
# self, inst: inst_base.Instantiation, interface: sys_conf.Interface
# ) -> inst_base.Socket | None:
# if not self._chan_needs_instance(chan=interface.get_chan_raise()):
# return None
# return inst.get_socket(
# interface=interface, supported_sock_types=self.supported_socket_types()
# )
# # TODO: remove
# def _get_sockets(self, inst: inst_base.Instantiation) -> list[inst_base.Socket]:
# sockets = []
# for comp_spec in self._components:
# for interface in comp_spec.interfaces():
# socket = self._get_socket(inst=inst, interface=interface)
# if socket is None:
# continue
# sockets.append(socket)
# return sockets
def
_get_socks_by_comp
(
self
,
inst
:
inst_base
.
Instantiation
,
comp
:
sys_conf
.
Component
)
->
list
[
inst_base
.
Socket
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment