Version checking error in custom preprocessor #2497
-
Hi, I am trying to implement a custom preprocessor class for a project and encountered error with version checking. Description: To give more context, here is the error message I got:
Where Appreciate any comments! I searched for "custom" in the discussion panel and did not see relevant questions. Still, apologies if it has already been answered somewhere. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. I will try to make it an installable module. What I am currently doing is adding Appreciate your patience! |
Beta Was this translation helpful? Give feedback.
Hi,
If you design your own preprocessing class, then the class need to live somewhere in an installed python module.
Otherwise it can not be loaded back when json or pickle.
In short if this class is in a local .py file this will not work unless all script are in the same module.
You can easly make a simple installable python module and use
pip install -e /path/to/cistul/module
instead, in this case it should solve the issue.Good luck.
And of course feel free to propose your class in spikeinterface!