Commit 4bcd6855 authored by Carl Schaffer's avatar Carl Schaffer
Browse files

adding changes

parent f016dc4d
......@@ -12,7 +12,7 @@ class AttrDict(dict):
class TestDataAccessor():
"""Class to facilitate easy access to test data. Data is stored in a separate folder and accessed as attributes e.g.
TestDataAccessor().chrotel.l1_data will give you a list of filenames for chrotel level 1 data.
TestDataAccessor().chrotel.l1_data will give you a list of filenames for chrotel level1 data.
"""
......@@ -33,6 +33,14 @@ class TestDataAccessor():
self._container = _container
def keys(self):
for k in self._container.keys():
yield k
def items(self):
for k,v in self._container.items():
yield k,v
def __getattr__(self, item):
return self._container[item]
......@@ -43,4 +51,4 @@ class TestDataAccessor():
if __name__ == '__main__':
td = TestDataAccessor()
print(td)
\ No newline at end of file
print(td)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment