Skip to content

Commit b4b31ff

Browse files
committed
caching
1 parent 00b7399 commit b4b31ff

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/bald/validation.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def is_valid(self):
5454
def exceptions(self):
5555
exceptions = []
5656
exceptions = self.check_attr_uris(exceptions)
57+
exceptions = self.check_attr_domain_range(exceptions)
5758
return exceptions
5859

5960
def check_attr_uris(self, exceptions):
@@ -74,6 +75,9 @@ def _check_uri(uri, exceptions):
7475
exceptions = _check_uri(self.subject.unpack_uri(value),
7576
exceptions)
7677
return exceptions
78+
79+
def check_attr_domain_range(self, exceptions):
80+
return exceptions
7781

7882

7983
class ContainerValidation(SubjectValidation):
@@ -112,15 +116,8 @@ def _check_ref(pdataset, parray, cdataset, carray):
112116
exceptions.append(ValueError(msg))
113117
return exceptions
114118

115-
# for dataset in ?????
116-
# for parent child relation in dataset
117-
# check the broadcasting relationship
118-
# parray = np.array((1,2))
119-
# carray = np.array((3,4))
120-
121119
for attr, value in self.subject.attrs.iteritems():
122120
# should support subtypes
123-
#import pdb; pdb.set_trace()
124121
if attr == 'bald_._reference':
125122
# check if it's this type, otherwise exception)
126123
# if isinstance(value,
@@ -139,5 +136,3 @@ class ValidationList(Validation):
139136
pass
140137

141138

142-
143-
#if __name__ == '__main__':

0 commit comments

Comments
 (0)