-
Notifications
You must be signed in to change notification settings - Fork 189
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
Wrap medicine motion estimation #3552
base: main
Are you sure you want to change the base?
Conversation
if rigid: | ||
# force one bin | ||
num_depth_bins = 1 | ||
else: | ||
|
||
# we use the spatial window mechanism only to estimate the number one spatial bins | ||
dim = ["x", "y", "z"].index(direction) | ||
contact_depths = recording.get_channel_locations()[:, dim] | ||
|
||
deph_range = max(contact_depths) - min(contact_depths) | ||
if win_margin_um is not None: | ||
deph_range = deph_range - 2 * win_margin_um | ||
num_depth_bins = max(int(np.round(deph_range / win_scale_um)), 1) | ||
print("num_depth_bins", num_depth_bins) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nwatters01 this is the main zone where we need to discuss.
I think that windows should come with the probe boundaries +/- margin not by the the spike depth limits.
Otherwise the number of spatial windows will depend on the recording itself and could vary from one recording to another.
FYI @samuelgarcia it appears the method is medicine not medecine--> probably better to change files names etc too. see here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
medecine -> medicine
from .motion_utils import get_spatial_windows | ||
|
||
|
||
class MedecineRegistration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class MedecineRegistration: | |
class MedicineRegistration: |
class MedecineRegistration: | ||
""" """ | ||
|
||
name = "medecine" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "medecine" | |
name = "medicine" |
@@ -11,6 +11,7 @@ | |||
from .decentralized import DecentralizedRegistration | |||
from .iterative_template import IterativeTemplateRegistration | |||
from .dredge import DredgeLfpRegistration, DredgeApRegistration | |||
from .medecine import MedecineRegistration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from .medecine import MedecineRegistration | |
from .medicine import MedicineRegistration |
IterativeTemplateRegistration, | ||
DredgeLfpRegistration, | ||
DredgeApRegistration, | ||
MedecineRegistration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MedecineRegistration, | |
MedicineRegistration, |
Hi @nwatters01 @alejoe91 @yger
here the wrapper which also need this PR
jazlab/medicine#2