Skip to content

Commit

Permalink
Update pixels to use the .zattrs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jun 22, 2023
1 parent 211d5b6 commit d440f09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/omero_mkngff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
values (nextval('seq_filesetentry'), {DETAILS2},
new_fileset, new_file, i-1, 'unknown');
-- use the third file as the target for setId (assumed to be the first .zattrs)
if i = 1 then
update pixels set path = trim(trailing '/' from info[i][1]), name = info[i][2]
from (select id from image where image.fileset = old_fileset) as subquery
where pixels.image = subquery.id;
end if;
end loop;
update image set fileset = new_fileset where fileset = old_fileset;
Expand Down

0 comments on commit d440f09

Please sign in to comment.