Skip to content

Commit 878e73e

Browse files
authored
Merge pull request #40 from NovelaNeuro/user/acwikla/remove_num_shanks_field
2 parents a2e5077 + c39ad8f commit 878e73e

File tree

7 files changed

+1
-20
lines changed

7 files changed

+1
-20
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Representation of Probe object in NWB <br>
5656
**probe_type** `string`: type of probe <br>
5757
**units** `string`: units in device <br>
5858
**probe_description** `string`: probe_description of probe <br>
59-
**num_shanks** `int`: number of shanks associated with probe <br>
6059
**contact_side_numbering** `bool`: is contact_side_numbering enabled <br>
6160
**contact_size** `float`: value of contact size as float <br>
6261
**shanks** `object`: shanks in the probe <br>

spec/ndx-franklab-novela.extensions.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ groups:
4242
- name: probe_description
4343
dtype: text
4444
doc: description of the probe
45-
- name: num_shanks
46-
dtype: int
47-
doc: number of shanks in probe
4845
- name: contact_side_numbering
4946
dtype: bool
5047
doc: is contact_side_numbering enabled

src/pynwb/ndx_franklab_novela/probe.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class Probe(Device, MultiContainerInterface):
5252
{'name': 'probe_type', 'type': 'str', 'doc': 'type of probe'},
5353
{'name': 'units', 'type': 'str', 'doc': 'units in device'},
5454
{'name': 'probe_description', 'type': 'str', 'doc': 'description of the probe'},
55-
{'name': 'num_shanks', 'type': 'int', 'doc': 'number of shanks associated with probe'},
5655
{'name': 'contact_side_numbering', 'type': 'bool', 'doc': 'is contact_side_numbering enabled'},
5756
{'name': 'contact_size', 'type': 'float', 'doc': 'value of contact size as float'},
5857
{'name': 'shanks', 'type': (list, tuple), 'doc': 'shanks in probe', 'default': list()}
@@ -64,7 +63,6 @@ def __init__(self, **kwargs):
6463
if kwargs_item != 'probe_type'
6564
if kwargs_item != 'units'
6665
if kwargs_item != 'probe_description'
67-
if kwargs_item != 'num_shanks'
6866
if kwargs_item != 'contact_side_numbering'
6967
if kwargs_item != 'contact_size'
7068
if kwargs_item != 'shanks'
@@ -74,12 +72,11 @@ def __init__(self, **kwargs):
7472
self.probe_type = kwargs['probe_type']
7573
self.units = kwargs['units']
7674
self.probe_description = kwargs['probe_description']
77-
self.num_shanks = kwargs['num_shanks']
7875
self.contact_side_numbering = kwargs['contact_side_numbering']
7976
self.contact_size = kwargs['contact_size']
8077
self.shanks = kwargs['shanks']
8178

82-
__nwbfields__ = ('id', 'probe_type', 'units', 'probe_description', 'num_shanks', 'contact_side_numbering',
79+
__nwbfields__ = ('id', 'probe_type', 'units', 'probe_description', 'contact_side_numbering',
8380
'contact_size')
8481

8582
__clsconf__ = [

src/pynwb/ndx_franklab_novela/spec/ndx-franklab-novela.extensions.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ groups:
4242
- name: probe_description
4343
dtype: text
4444
doc: description of the probe
45-
- name: num_shanks
46-
dtype: int
47-
doc: number of shanks in probe
4845
- name: contact_side_numbering
4946
dtype: bool
5047
doc: is contact_side_numbering enabled

src/pynwb/tests/test_probe.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def test_probe_successfully_created(self):
6767
probe_type='type_1',
6868
units='um',
6969
probe_description='sample description',
70-
num_shanks=2,
7170
contact_side_numbering=True,
7271
contact_size=1.0,
7372
)
@@ -81,7 +80,6 @@ def test_probe_successfully_created(self):
8180
self.assertIsInstance(probe.probe_type, str)
8281
self.assertIsInstance(probe.units, str)
8382
self.assertIsInstance(probe.probe_description, str)
84-
self.assertIsInstance(probe.num_shanks, int)
8583
self.assertIsInstance(probe.contact_side_numbering, bool)
8684
self.assertIsInstance(probe.contact_size, float)
8785
self.assertIsInstance(probe.shanks, dict)
@@ -91,7 +89,6 @@ def test_probe_successfully_created(self):
9189
self.assertEqual(probe.probe_type, 'type_1')
9290
self.assertEqual(probe.units, 'um')
9391
self.assertEqual(probe.probe_description, 'sample description')
94-
self.assertEqual(probe.num_shanks, 2)
9592
self.assertEqual(probe.contact_side_numbering, True)
9693
self.assertEqual(probe.contact_size, 1.0)
9794
self.assertEqual(probe.shanks, {

src/pynwb/tests/test_read_nwb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def test_read_nwb_probe_successfully(self):
7878
id=1,
7979
probe_type='type_1',
8080
probe_description='2',
81-
num_shanks=3,
8281
contact_size=1.0,
8382
contact_side_numbering=False
8483
)

src/spec/create_extension_spec.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ def main():
105105
doc='description of the probe',
106106
dtype='text'
107107
),
108-
NWBAttributeSpec(
109-
name='num_shanks',
110-
doc='number of shanks in probe',
111-
dtype='int'
112-
),
113108
NWBAttributeSpec(
114109
name='contact_side_numbering',
115110
doc='is contact_side_numbering enabled',

0 commit comments

Comments
 (0)