Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in CProcessModel tag selection #421

Merged
merged 2 commits into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lava/magma/core/run_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def _order_according_to_resources(self, proc_models: ty.List[ty.Type[
or Loihi1NeuroCore in pm.required_resources)
and issubclass(pm, AbstractNcProcessModel)]
# CProcModels compatible with Loihi
proc_models_c = [pm for pm in proc_models
proc_models_c = [idx for idx, pm in enumerate(proc_models)
if issubclass(pm, CLoihiProcessModel)]
return list(chain(proc_models_nc, proc_models_c, proc_models_py))

Expand Down Expand Up @@ -464,7 +464,7 @@ def _order_according_to_resources(self, proc_models: ty.List[ty.Type[
or Loihi2NeuroCore in pm.required_resources)
and issubclass(pm, AbstractNcProcessModel)]
# CProcModels compatible with Loihi
proc_models_c = [pm for pm in proc_models
proc_models_c = [idx for idx, pm in enumerate(proc_models)
if issubclass(pm, CLoihiProcessModel)]
# PyProcModels in Loihi2HwCfg will be made available in the future
return list(chain(proc_models_nc, proc_models_c, proc_models_py))
Expand Down