Skip to content

Commit

Permalink
Cherry picks from 2.8 to main (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 authored Jul 10, 2024
2 parents 59558cd + 2d8a99e commit 8252bcc
Show file tree
Hide file tree
Showing 46 changed files with 68 additions and 48 deletions.
3 changes: 2 additions & 1 deletion .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ runs:
git worktree add --track -b gh-pages gh-pages origin/gh-pages
cd gh-pages
git rm -r -q -- ${dir_name}/[!0-9]* # remove everything apart from versioned directories
git rm -r -q -- ${dir_name}/[!0-9]* || true # remove everything apart from versioned directories
mkdir -p ${dir_name}
cp -a ../docs/build/html/* ${dir_name}
md5sum ${dir_name}/index.html # if no index then there must have been a problem
if [ "$(git status --porcelain | wc -l)" -gt "0" ] ; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ jobs:
make build-docs
- name: publish docs
if: github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: ./.github/actions/publish-docs
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: publish docs release
if: startsWith(github.ref, 'refs/heads/release')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release')
uses: ./.github/actions/publish-docs
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
63 changes: 63 additions & 0 deletions docs/release_notes/2.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Mantid Imaging 2.8
==================

Mantid Imaging 2.8.0 continues to expand the capability to work with energy resolved imaging data.

It is now possible to do a shutter count correction when normalising transmission data. The spectrum view can do unit conversion to show and export data in wavelength, energy or time of flight, with the ability to set path length and offset. The spectrum viewer now allows zoom by holding Ctrl and dragging a box and makes it easier to change ROI colours. NaN warnings have been added to the spectrum viewer.

A settings dialog has been added which can be used to change themes and adjust the number of threads used for running operations. Note that themes are not well tested yet.

There have been many bug fixes. The live viewer is now usable with large directories. Working with ROIs is more reliable.

MI now has updated many dependent packages bringing performance improvements. There have been improvements to testing, type annotations and static analysis. Migration of operations to compute function style is almost complete. These changes improve stability and help developers find bugs faster.

New Features
------------
- #2046 : Enhancement: Implement Click Dialog for Changing ROI Colors in Table
- #2051: Move operations to compute_function style
- #2067 : Add ConfigurationManager Class to operations_tests.py
- #2094: Add ShutterCount File type.
- #2094: Front-end for loading ShutterCount files into Mantid Imaging.
- #2094: Apply ShutterCount Normalisation within Spectrum Viewer
- #2133: The Spectrum plot in the Spectrum Viewer can be zoomed via a click and drag zoom-box
- #2144: MI UI theme can be changed in runtime via a settings menu
- #2151: Neutron wavelength, energy and tof units can be selected in the Spectrum Viewer
- #2151: Time of Flight user properties can be set in the Spectrum Viewer
- #2206: Improve output naming for reconstructed slices and volumes
- #2216: Add Wavelength, ToF and Energy unit conversions to Spectrum Viewer CSV Output
- #2230: Create checkbox that can be toggled on or off to apply ShutterCount correction to ToF data within the spectrum viewer window

Fixes
-----
- #2053: Fix unreliable tests due to viewbox
- #2076: ROI speed up
- #2113: Spectrum Viewer stacks now update with Main Window after operation applied
- #2129 : fix menu position for new pyqtgraph
- #2129 : fix: Pytest failure AttributeError: 'ImageStack' object has no attribute 'shape
- #2167: The Spectrum Viewer no longer produces in different sizes
- #2185: NaN warning icon now appears in the Spectrum Viewer when NaN are in averaged image
- #2204: Live viewer, handle notification quickly and defer slow work
- #2209: Mantid Imaging now switches between Fusion and qt-material themes correctly
- #2219: Live viewer: informative error if live directory deleted
- #2246: Don't duplicate ROI names after stack modification
- #2250: A bug where a lock object was trying to be pickled has not been fixed, the median filter is now functional.
- #2242: In the Spectrum Viewer, the Export Tabs now disable when no image stacks are available to prevent a KeyError

Developer Changes
-----------------
- #1985 : Backend work for TGV reconstruction
- #2008: Update mypy, remove --no-site-packages, fix issues
- #2035: Add setting for number of processes to start in multiprocessing pool (default to 8)
- #2080: Switch to pydata documentation theme
- #2082: Normal, System, and Screenshot test are now explicitly separated in the Makefile
- #2107: Fix operation test param defaults
- #2109: Allow tuple params in operation test cases
- #2114: Update ruff and fix some new warnings
- #2116 : Don't run test suite when only doc changes
- #2139 : Doc extensions: use StringList instead of ViewList
- #2172: Unit tests for the UnitConversion class
- #2177: Added unit tests for the Time of Flight user properties in the Spectrum Viewer
- #2183 : Update CIL to 24.0, numpy 1.23, scipy 1.8
- #2196 : Cancel in progress test runs when new commit pushed
- #2213 : unit tests have been added to check that the Time of Flight modes behave correctly when switching between stacks
- #2250 : Make systems tests stricter to catch operations errors
1 change: 1 addition & 0 deletions docs/release_notes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release Notes
:caption: Contents:

next
2.8
2.7
2.6
2.5
Expand Down
1 change: 0 additions & 1 deletion docs/release_notes/next/dev-1985-tgv-backend

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2008-mypy-site-packages

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2035-process-count

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2080-sphinx-pydata

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2082-pytest_separation

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2107-operation-test-params

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2109-operation-test-tuple

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2114-update-ruff

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2116-tests-not-docs

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2139-use-stringlist

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2172-unit-conversion-tests

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2177-spectrum-viewer-ToF-tests

This file was deleted.

2 changes: 0 additions & 2 deletions docs/release_notes/next/dev-2183-update-cil

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/dev-2195-cancel-in-progress

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docs/release_notes/next/dev-2250-catch-operations-errors

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2046-ROI_Colors _table

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2051-operations

This file was deleted.

2 changes: 0 additions & 2 deletions docs/release_notes/next/feature-2067-configManger

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2094-load_shuttercounts

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2144-UI-theme-settings

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2151-tof-user-properties

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/feature-2206-recon_file_naming

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2053-viewbox-test-fail

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2076-ROI-speed

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2119-pyqt-menu

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2129-median_cuda

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2185-spectrum-nan-warning

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2204-live-viewer-fast-notifiy

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2219-live-view-del-dir

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2246-roi-name-dupe

This file was deleted.

1 change: 0 additions & 1 deletion docs/release_notes/next/fix-2250-median-filter

This file was deleted.

0 comments on commit 8252bcc

Please sign in to comment.