Opened 7 years ago

Last modified 7 years ago

#1584 closed defect

multi-file open incorrectly logged — at Version 3

Reported by: Elaine Meng Owned by: Eric Pettersen
Priority: major Milestone:
Component: Input/Output Version:
Keywords: Cc: chimera-programmers
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description (last modified by Eric Pettersen)

If I use menu: File... Open and use click + Shift-click to choose multiple files for opening (e.g. DICOM image stack is a series of files), the logged "open" command just names the first file. Thus,
later if you try to reopen the data from File History/Rapid Access, it just opens a single plane.

Assign/prioritize as appropriate...

Change History (4)

comment:1 by Eric Pettersen, 7 years ago

Owner: set to Eric Pettersen
Status: newaccepted

comment:2 by Eric Pettersen, 7 years ago

Can you point me towards an example DICOM image stack? I've changed the code to put all the file names into the 'open' command, but for PDB files at least it creates one file-history entry for each file, and I'm worried that it will create a zillion entries for a DICOM stack, so I want something to test with.

by Elaine Meng, 7 years ago

Attachment: tiff.zip added

try this tiff stack (10 files in zipped folder)

comment:3 by Eric Pettersen, 7 years ago

Description: modified (diff)

I can make File→Open issue the multi-file 'open' command, but in that case the command uses each file's full path; it doesn't compress them using any type of globbing of course. But the open command will only interpret multiple files as a volume or volume series if the name has wildcard/glob characters in it(!), even if you explicitly say 'vseries true'. So with your data, a long 'open' command gets issued, but you get one volume viewer per file and one file-history entry per file. Not optimal.

There doesn't seem to be any equivalent in the open command to what File→Open has been doing with multiple files, which is to call session.models.open(paths) directly, which creates a single volume out of the files. In order to fix this we need some way to make the 'open' command work then same way when given multiple files.

I am re-assigning this ticket to T.G. and opening a separate ticket for '"open browse" file browser does not allow multi-file selection and opening.'

--Eric

Note: See TracTickets for help on using tickets.