mirror of
https://github.com/a2-4am/passport.py.git
synced 2025-01-14 08:32:49 +00:00
expose all flux captures
This commit is contained in:
parent
8b9fb866bd
commit
802526fe6f
7
passport/a2rimage.py
Normal file → Executable file
7
passport/a2rimage.py
Normal file → Executable file
@ -42,6 +42,9 @@ class A2RImage:
|
||||
raise WozError("Invalid track %s" % track_num)
|
||||
location = int(track_num * 4)
|
||||
if not self.tracks.get(location):
|
||||
bits, track_length = self.to_bits(self.a2r_image.flux.get(location, [{}])[0])
|
||||
self.tracks[location] = Track(bits, len(bits))
|
||||
all_bits = bitarray.bitarray()
|
||||
for flux_record in self.a2r_image.flux.get(location, [{}]):
|
||||
bits, track_length = self.to_bits(flux_record)
|
||||
all_bits.extend(bits)
|
||||
self.tracks[location] = Track(all_bits, len(all_bits))
|
||||
return self.tracks[location]
|
||||
|
Loading…
x
Reference in New Issue
Block a user