Skip to content
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

GUI development docs #201

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/development-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ Although many of `recOrder`'s tests are automated, many features require manual
* Test the "Acquire Birefringence" button on a background FOV. Does a background-corrected background acquisition give random orientations?
* Test the four "Acquire" buttons with varied combinations of 2D/3D, background correction settings, "Phase from BF" checkbox, and regularization parameters.
* Use the data you collected to test "Offline" mode reconstructions with varied combinations of parameters.

## GUI development

We use `QT Creator` for large parts of `recOrder`'s GUI. To modify the GUI, install `QT Creator` from [its website](https://www.qt.io/product/development-tools) or with `brew install --cask qt-creator`

Open `/recOrder/recOrder/plugin/qtdesigner/recOrder_ui.ui` in `QT Creator` and make your changes.

Finally, convert the `.ui` to a `.py` file with
```sh
pyuic5 -x recOrder_ui.ui -o recOrder_ui.py
```
Note: `pyuic5` is installed alongside `PyQt5`, so you can expect to find it installed in your `recOrder` conda environement.

Note: although much of the GUI is specified in the generated `recOrder_ui.py` file, the `main_widget.py` file makes extensive modifications to the GUI.
4 changes: 2 additions & 2 deletions recOrder/calib/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ def opt_I135(self, lca_bound, lcb_bound):
intensity value at optimized state
"""

logging.info('Calibrating State3 (I135)...')
logging.debug('Calibrating State3 (I135)...')
logging.info('Calibrating State4 (I135)...')
logging.debug('Calibrating State4 (I135)...')
self.inten = []

self.set_lc(self.lca_ext, 'LCA')
Expand Down