Skip to content

Commit

Permalink
NiFi Scripts: fixed cerner decompression problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Mar 7, 2024
1 parent 33eff5f commit cbe733a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nifi/user-scripts/utils/cerner_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self) -> None:
def save_to_lookup_table(self, compressed_code: int):
self.tmp_buffer_index = -1
while compressed_code >= 258:
self.tmp_buffer_index += 1
self.tmp_decompression_buffer[self.tmp_buffer_index] = \
self.lzw_lookup_table[compressed_code].suffix
compressed_code = self.lzw_lookup_table[compressed_code].prefix
Expand Down

0 comments on commit cbe733a

Please sign in to comment.