Skip to content

Commit

Permalink
Update spec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Nov 15, 2024
1 parent fba601a commit 5740daf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/hdmf/spec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class DtypeHelper:
'uint32': ["uint32", "uint"],
'uint64': ["uint64"],
'object': ['object'],
'region': ['region'],
'numeric': ['numeric'],
'isodatetime': ["isodatetime", "datetime", "date"]
}
Expand Down Expand Up @@ -174,12 +173,13 @@ def path(self):

_ref_args = [
{'name': _target_type_key, 'type': str, 'doc': 'the target type GroupSpec or DatasetSpec'},
{'name': 'reftype', 'type': str, 'doc': 'the type of references this is i.e. region or object'},
{'name': 'reftype', 'type': str,
'doc': 'the type of reference this is. only "object" is supported currently.'},
]


class RefSpec(ConstructableDict):
__allowable_types = ('object', 'region')
__allowable_types = ('object', )

@docval(*_ref_args)
def __init__(self, **kwargs):
Expand All @@ -200,10 +200,6 @@ def reftype(self):
'''The type of reference'''
return self['reftype']

@docval(rtype=bool, returns='True if this RefSpec specifies a region reference, False otherwise')
def is_region(self):
return self['reftype'] == 'region'


_attr_args = [
{'name': 'name', 'type': str, 'doc': 'The name of this attribute'},
Expand Down

0 comments on commit 5740daf

Please sign in to comment.