-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* no save_as_trk option for only 1 frame * let caliban open 3 and 5D npzs in some cases 3D npzs can have a dimension added and removed upon save (a single "frame"). 5D npzs can be opened as 4D if the first ("batch") dimension just has a size of 1. * don't display "slices" info if the file only has one slice/frame * initial Mode2D class, subclassed from Mode Making prompt text more modular and specific to use-case * consolidate prompt text into helper function Text doesn't depend on number of frames, so only need to implement once * further refactoring and subclassing Mode - self.simple_answer instead of answer string - string formatting to make some questions more generalizable across classes - pulling more cases into helper functions for modularity - Mode3D class * further refactoring of Mode to use Mode2D and Mode3D * use ModeTrack to extend Mode3D for working with trk files * add "single_frame" attribute to ZStackReview for 2D/3D bookkeeping Instead of checking self.num_frames == 1 each time * fix prompt typos in Mode * restrict ZStackReview single-frame keybinds to match Mode ie, if Mode prompt only says "space to confirm/esc to cancel", pressing "s" should not trigger the "single-frame" version of the action, only space should trigger the action. "Predict" option should not be triggered by P keybind for single-frame files. * use self.raw.shape instead of raw.shape to get num_frames self.raw has been converted into 4D if needed, raw has not * simplify self.single_frame assignment Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com> * fix save typo * recommended change for generating self.display_info * text formatting, spacing fixes * minor improvement in self.display_info generation * add warning print statements if 3D or 5D npz arrays are opened Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
- Loading branch information
1 parent
d2dd161
commit d87d1a6
Showing
2 changed files
with
231 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.