Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def write_initial_header_and_vlrs(self, header, vlrs: VLRList):
laszip_vlr = LasZipVlr(self.vlr.record_data())
vlrs.append(laszip_vlr)
super().write_initial_header_and_vlrs(header, vlrs)
# We have to initialize our compressor here
# because on init, it writes the offset to chunk table
# so the header and vlrs have to be written
if self.parallel:
self.compressor = lazrs.ParLasZipCompressor(self.dest, self.vlr)
else:
self.compressor = lazrs.LasZipCompressor(self.dest, self.vlr)