Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
0x201: { 'JPEGQuality': {
1:"SQ",
2:"HQ",
3:"SHQ"
}
},
0x202: { 'Macro': {
0:"Normal",
1:"Macro"
}
}
}
class MakerNotes(InterpretedMakerNotes):
def __init__(self, exif):
super(MakerNotes, self).__init__(exif)
for tag in olympus_map.keys():
t = self._raw.get(tag)
el, val = olympus_map[tag].items()[0]
if val=={}:
val = t.value
else:
val = val.get(t.value, "uknown: %s" % t.value)
setattr(self.__class__, el, property(fget = lambda s, v=val: v)) #make it read only
0:"Auto",
1:"Sunny",
2:"Cloudy",
3:"Tungsten",
4:"Flourescent",
5:"Flash",
6:"Custom"},
'SequenceNumber': {'mindex':9}, #9
'AFPointUsed': {'mindex':14}, #14
'FlashBias': { 'mindex':15, #15
'.':"EV"},
'SubjectDistance': {'mindex':19}, #19
}
}
class MakerNotes(InterpretedMakerNotes):
def __init__(self, exif):
super(MakerNotes, self).__init__(exif)
for tag in canon_map.keys():
t = self._raw.get(tag)
for el, val in canon_map[tag].items():
if len(val.keys())==1:
val = t.value[val['mindex']]
else:
val = val.get(t.value[val['mindex']], "uknown: %s" % t.value[val['mindex']])
setattr(self.__class__, el, property(fget = lambda s, v=val: v)) #make it read only