-
Notifications
You must be signed in to change notification settings - Fork 15
Problems with zarr 2.11.0 #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @frezaei98 👋, thanks for the bug report. Can you tell us what version you're using (is it git or from conda or pip)? A minimal working example would be ideal, with a small sample data file. |
That is strange. Nothing has changed in the code. Do you know what line number is giving the error. Could you post a simple test case (with data) that reproduces the error for you? (snap, Jerome, sorry!) |
Hi, |
Hi, |
I can confirm this happens in a fresh venv... investigating. |
Very strange:
Somehow we're setting the metadata to 0 for sites when I run the version from a pip installation, but not when working with the git version. Very strange... |
I have been working on tsinfer for three or four months and it was very strange that it was right until Monday, but on Tuesday I want to continue my work, I got an error.... |
|
I'm going to reopen this @frezaei98 - there's definitely something wrong here. I'm not sure if it's directly a bug in tsinfer or some weird interaction with an upstream package, but it's something we need to get to the bottom of. |
I've tracked this down to a problem with Zarr @frezaei98. Something changed in the behaviour of metadata with version 2.11. MWE: import tsinfer
with tsinfer.SampleData(sequence_length=6) as sample_data:
sample_data.add_site(0, [0, 1, 0, 0, 0], ["A", "T"])
for site in sample_data.sites():
print(site) with version 2.10 we get:
and version 2.11 we have
Note the The short term fix is to install zarr version 2.10, e.g. I'm not sure if this is a bug in zarr or whether we were depending on some undocumented/dodgy behaviour. I guess we need to figure this out before we decide what the right approach is. |
Thanks for tracking this down @jeromekelleher. Good bug hunting there. |
Bisected to zarr-developers/zarr-python@f461eb7 still figuring out which bit of it! Seems related to handling of empty chunks. |
Good luck @benjeffery ! |
Aha, fantastic, thanks @benjeffery! I bet it's the |
Yep, I expect so. Was just trying to find the spot in tsinfer. |
@jeromekelleher adding I think this is a PR to zarr, will write up. |
Yeah, I tried to do a quick fix over in #631, which didn't work. Thanks for following up! |
Reported upstream zarr-developers/zarr-python#965 |
Many thanks. I changed the version of Zarr package and it fixed and worked. |
Here's an additional zarr issue that we hit in this release: |
From Tuesday, this code "inferred_ts = tsinfer.infer(sample_data)" has not run suddenly. I am facing this error " TypeError: 'int' object is not a mapping". What can I do to fix this error?
The text was updated successfully, but these errors were encountered: