Skip to content

Commit

Permalink
Fix binary files
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Aug 1, 2024
1 parent d795a73 commit af78c62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ome2024_ngff_challenge/resave.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import time
from pathlib import Path

import numpy as np
import tensorstore as ts
import tqdm
import zarr
Expand Down Expand Up @@ -72,7 +73,9 @@ class TextBuffer(Buffer):

def __init__(self, text):
self.text = text
self._data = list(text)
if isinstance(text, str):
text = np.array(text.encode())
self._data = text


class TSMetrics:
Expand Down

0 comments on commit af78c62

Please sign in to comment.