Draft
Conversation
12bfbce to
f2d195a
Compare
psavery
pushed a commit
that referenced
this pull request
Feb 17, 2026
Search for several different ptycho files
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Otherwise, it is too long and you sometimes can't close it. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This adds the decorator `@apply_to_each_array` automatically to every transform function, unless explicitly instructed not to in the JSON description file via `"apply_to_each_array": false`. This is being done because nearly every operator in the codebase needs this decorator, and it is tedious to have to remember it every time. It is not added automatically if it is already present on an operator. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
They are no longer needed, as it is applied automatically. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This fixes a few issues the tests identified with the automatic decoration. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
This adds support for scan IDs in the following places: 1. The DataSource class 2. The DataPropertiesPanel (if present, they are displayed with the tilt angles) 3. EMD files (they are written in `/data/tomography/scan_ids`) 4. In operators (`dataset.scan_ids`) The scan IDs are automatically read from the PyXRF and Ptycho workflows and saved on the Data Source. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
The pixel size name changed recently. We need to support both the old version and the new version. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This gets the PyXRF dialogs to automatically locate `pyxrf-utils` executables in some standard paths, starting with the last one that the user selected. It will set it automatically if it exists. If it does not exist, the user will be forced to pick one. The validation error is significantly easier to read than the previous error that would be encountered. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This is now a generic operator for shifting the rotation center. You generate a set of reconstructions from a single slice with a set of test rotation centerss and are able to view each one, and determine which rotation center produces the best reconstruction. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This prevents the operator dialog from just appearing randomly on other monitors or in random places on the desktop window. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
Verify it is available to set before using it. Otherwise, we get a warning. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
It can now perform other reconstruction operations, such as mlem. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
These are not necessarily places we have encountered seg faults, but places we *could* potentially encounter them (and it's possible they have caused segmentation faults in the past). Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
When we tried to operate on a non-existing ptycho directory, it would cause major issues, including a crash. Make sure the ptycho directory exists before we do anything else. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
fix pipeline execution with breakpoint when modifying operators
Signed-off-by: Alessandro Genova <alessandro.genova@kitware.com>
This allows "and" and "or" to be used in json description files, like this: ```json "visible_if": "algorithm == 'mlem' or algorithm == 'ospml_hybrid'" ``` Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This also adds a few more tomopy methods. The available methods are currently: gridrec, fbp, mlem, and ospml_hybrid. The mlem and ospml_hybrid ones are iterative methods and require the `num_iter` argument. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
add ability to export table results as csv
This additional step prevents it from being on a different monitor. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This splits up the slice into the proper "Projection No" and "slice" values. It also fixes all the logic for determining and applying the rotation center. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
add PSD and FSC 1D metric operators
This is needed to prevent some errors. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
These show quality metrics that help you align the center. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.