# Path: pylsdj/utils.py
# class ObjectLookupDict(object):
# 
#     def __init__(self, id_list, object_list):
#         self.id_list = id_list
#         self.object_list = object_list
# 
#     def __getitem__(self, index):
#         assert_index_sane(index, len(self.id_list))
# 
#         return self.object_list[self.id_list[index]]
# 
#     def __setitem__(self, index, value):
#         assert_index_sane(index, len(self.id_list))
# 
#         self.id_list[index] = value.index


from .utils import ObjectLookupDict

# Need to define a custom lookup dict so that index=255 is treated as unset and
# doesn't throw an exception
class InstrumentLookupDict(ObjectLookupDict):
    def __getitem__(self, index):
        if self.id_list[index] == 255:

# Path: pylsdj/utils.py
# class ObjectLookupDict(object):
# 
#     def __init__(self, id_list, object_list):
#         self.id_list = id_list
#         self.object_list = object_list
# 
#     def __getitem__(self, index):
#         assert_index_sane(index, len(self.id_list))
# 
#         return self.object_list[self.id_list[index]]
# 
#     def __setitem__(self, index, value):
#         assert_index_sane(index, len(self.id_list))
# 
#         self.id_list[index] = value.index


# Path: pylsdj/phrase.py
from .utils import ObjectLookupDict


# Need to define a custom lookup dict so that index=255 is treated as unset and
# doesn't throw an exception
class InstrumentLookupDict(ObjectLookupDict):
    def __getitem__(self, index):
        if self.id_list[index] == 255:

            return None