histomicsui 1.8.1.dev225__tar.gz → 1.8.1.dev260__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.circleci/config.yml +15 -15
  2. {histomicsui-1.8.1.dev225/histomicsui.egg-info → histomicsui-1.8.1.dev260}/PKG-INFO +7 -7
  3. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/config_options.rst +39 -2
  4. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/controls.rst +15 -2
  5. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260/histomicsui.egg-info}/PKG-INFO +7 -7
  6. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/SOURCES.txt +1 -0
  7. histomicsui-1.8.1.dev260/histomicsui.egg-info/requires.txt +9 -0
  8. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/scm_file_list.json +5 -0
  9. histomicsui-1.8.1.dev260/histomicsui.egg-info/scm_version.json +8 -0
  10. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/setup.py +6 -6
  11. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/.histomicsui_config.yaml +1 -0
  12. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/allowedGroupsSpec.js +14 -14
  13. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/analysisSpec.js +53 -8
  14. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/annotationSpec.js +820 -0
  15. histomicsui-1.8.1.dev260/tests/web_client_specs/hotkeysSpec.js +155 -0
  16. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tox.ini +1 -1
  17. histomicsui-1.8.1.dev225/histomicsui.egg-info/requires.txt +0 -9
  18. histomicsui-1.8.1.dev225/histomicsui.egg-info/scm_version.json +0 -8
  19. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.circleci/get_version.py +0 -0
  20. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.circleci/publish_pypi.sh +0 -0
  21. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.editorconfig +0 -0
  22. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.git-blame-ignore-revs +0 -0
  23. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.gitignore +0 -0
  24. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/.pre-commit-config.yaml +0 -0
  25. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/LICENSE +0 -0
  26. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/MANIFEST.in +0 -0
  27. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/NOTICE +0 -0
  28. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/README.rst +0 -0
  29. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/codecov.yml +0 -0
  30. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/annotation_group_restrictions.rst +0 -0
  31. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/images/cut.gif +0 -0
  32. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/images/difference.gif +0 -0
  33. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/images/intersect.gif +0 -0
  34. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/images/union.gif +0 -0
  35. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/images/xor.gif +0 -0
  36. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/docs/slicer_cli_plugins.rst +0 -0
  37. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/__init__.py +0 -0
  38. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/constants.py +0 -0
  39. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/girder_worker_plugin.py +0 -0
  40. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/handlers.py +0 -0
  41. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/__init__.py +0 -0
  42. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/aperio.py +0 -0
  43. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/case.py +0 -0
  44. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/cohort.py +0 -0
  45. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/image.py +0 -0
  46. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/meta.py +0 -0
  47. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/pathology.py +0 -0
  48. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/models/slide.py +0 -0
  49. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/__init__.py +0 -0
  50. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/aperio.py +0 -0
  51. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/hui_resource.py +0 -0
  52. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/image_browse_resource.py +0 -0
  53. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/system.py +0 -0
  54. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui/rest/tcga.py +0 -0
  55. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/dependency_links.txt +0 -0
  56. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/entry_points.txt +0 -0
  57. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/not-zip-safe +0 -0
  58. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/histomicsui.egg-info/top_level.txt +0 -0
  59. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/pyproject.toml +0 -0
  60. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/requirements-dev.txt +0 -0
  61. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/ruff.toml +0 -0
  62. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/sample_data/Easy1.png +0 -0
  63. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/sample_data/sample_svs_image.TCGA-DU-6399-01A-01-TS1.e8eb65de-d63e-42db-af6f-14fefbbdf7bd.svs +0 -0
  64. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/setup.cfg +0 -0
  65. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/__init__.py +0 -0
  66. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/conftest.py +0 -0
  67. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/datastore.py +0 -0
  68. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/girder_utilities.py +0 -0
  69. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/sample.anot +0 -0
  70. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/sample.meta +0 -0
  71. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/sample_girder_id.anot +0 -0
  72. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/test_analysis_detection.xml +0 -0
  73. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_files/test_analysis_features.xml +0 -0
  74. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_handlers.py +0 -0
  75. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_hui_rest.py +0 -0
  76. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_image_browse_endpoints.py +0 -0
  77. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_load.py +0 -0
  78. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/test_tcga.py +0 -0
  79. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/.eslintrc +0 -0
  80. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/girderUISpec.js +0 -0
  81. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/huiSpec.js +0 -0
  82. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/huiTest.js +0 -0
  83. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/itemSpec.js +0 -0
  84. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/metadataPanelSpec.js +0 -0
  85. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/metadataPlotSpec.js +0 -0
  86. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/overviewPanelSpec.js +0 -0
  87. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/panelLayoutSpec.js +0 -0
  88. {histomicsui-1.8.1.dev225 → histomicsui-1.8.1.dev260}/tests/web_client_specs/pixelmapCategorySpec.js +0 -0
@@ -84,15 +84,6 @@ commands:
84
84
  command: for i in $(seq 1 10); do [ $i -gt 1 ] && echo "retrying $i" && sleep 5; ./codecov --disable search pycov gcov --file .tox/coverage/py_coverage.xml,.tox/coverage/cobertura-coverage.xml && s=0 && break || s=$?; done; (exit $s)
85
85
 
86
86
  jobs:
87
- py310:
88
- executor: toxandnode
89
- steps:
90
- - checkout
91
- - use_nvm
92
- - build_client
93
- - tox:
94
- env: py310
95
- - coverage
96
87
  py311:
97
88
  executor: toxandnode
98
89
  steps:
@@ -129,6 +120,15 @@ jobs:
129
120
  - tox:
130
121
  env: py314
131
122
  - coverage
123
+ py315:
124
+ executor: toxandnode
125
+ steps:
126
+ - checkout
127
+ - use_nvm
128
+ - build_client
129
+ - tox:
130
+ env: py315
131
+ - coverage
132
132
  web_client:
133
133
  executor: toxandnode
134
134
  environment:
@@ -184,35 +184,35 @@ workflows:
184
184
  version: 2
185
185
  ci:
186
186
  jobs:
187
- - py310:
187
+ - py311:
188
188
  filters:
189
189
  tags:
190
190
  only: /^v.*/
191
191
  branches:
192
192
  ignore:
193
193
  - gh-pages
194
- - py311:
194
+ - py312:
195
195
  filters:
196
196
  tags:
197
197
  only: /^v.*/
198
198
  branches:
199
199
  ignore:
200
200
  - gh-pages
201
- - py312:
201
+ - py313:
202
202
  filters:
203
203
  tags:
204
204
  only: /^v.*/
205
205
  branches:
206
206
  ignore:
207
207
  - gh-pages
208
- - py313:
208
+ - py314:
209
209
  filters:
210
210
  tags:
211
211
  only: /^v.*/
212
212
  branches:
213
213
  ignore:
214
214
  - gh-pages
215
- - py314:
215
+ - py315:
216
216
  filters:
217
217
  tags:
218
218
  only: /^v.*/
@@ -242,11 +242,11 @@ workflows:
242
242
  - gh-pages
243
243
  - release:
244
244
  requires:
245
- - py310
246
245
  - py311
247
246
  - py312
248
247
  - py313
249
248
  - py314
249
+ - py315
250
250
  - lint_and_docs
251
251
  filters:
252
252
  tags:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: histomicsui
3
- Version: 1.8.1.dev225
3
+ Version: 1.8.1.dev260
4
4
  Summary: Organize, visualize, and analyze histology images.
5
5
  Home-page: https://github.com/DigitalSlideArchive/histomicsui
6
6
  Author: Kitware, Inc.
@@ -11,22 +11,22 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Natural Language :: English
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: >=3.10
18
+ Classifier: Programming Language :: Python :: 3.15
19
+ Requires-Python: >=3.11
20
20
  Description-Content-Type: text/x-rst
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
23
  Requires-Dist: girder>=5
24
24
  Requires-Dist: girder-jobs>=5
25
25
  Requires-Dist: girder-slicer-cli-web>=5
26
- Requires-Dist: girder-large-image==1.35.5a199
27
- Requires-Dist: girder-large-image-annotation==1.35.5a199
28
- Requires-Dist: large-image-tasks==1.35.5a199
29
- Requires-Dist: large-image-converter==1.35.5a199
26
+ Requires-Dist: girder-large-image==1.37.1a210
27
+ Requires-Dist: girder-large-image-annotation==1.37.1a210
28
+ Requires-Dist: large-image-tasks==1.37.1a210
29
+ Requires-Dist: large-image-converter==1.37.1a210
30
30
  Provides-Extra: analysis
31
31
  Dynamic: author
32
32
  Dynamic: author-email
@@ -66,7 +66,14 @@ _________________
66
66
  lineColor: rgb(0, 0, 255)
67
67
  lineWidth: 2
68
68
 
69
- If a hotkey is specified for a group, it will only be active if the group was loaded from the config file. That is, moving to another folder where the config file does not apply will disable the hotkey. If you want hotkeys to have modifiers (e.g., require that alt, ctrl, or meta be pressed or explicitly NOT pressed), you can add a hotkey section:
69
+ If a hotkey is specified for a group, it will only be active if the group was loaded from the config file. That is, moving to another folder where the config file does not apply will disable the hotkey.
70
+
71
+ Hotkeys
72
+ _______
73
+
74
+ Most keyboard shortcuts can be changed with a ``hotkeys`` section. Each entry names an ``action`` and a ``key``. A key is a single key name, optionally preceded by modifiers joined with ``+`` or ``-``, such as ``r``, ``shift+s``, ``ctrl+alt+x``, ``left``, ``space``, ``esc``, or ``plus``. Modifiers can also be given as ``ctrl``, ``alt``, ``meta``, or ``shift`` values of ``true``. Modifiers that are not listed must not be pressed, except that ``shift`` is ignored for punctuation that needs it to be typed.
75
+
76
+ If any entry mentions an action, the listed keys replace that action's default keys, and any other action that had one of those keys by default loses it. An action can have more than one key by listing it more than once, and ``key: null`` removes all of its keys.
70
77
 
71
78
  ::
72
79
 
@@ -75,9 +82,39 @@ If a hotkey is specified for a group, it will only be active if the group was lo
75
82
  -
76
83
  key: r
77
84
  ctrl: true
78
- alt: false
79
85
  action: group
80
86
  param: Red
87
+ -
88
+ key: h
89
+ action: pan.left
90
+ -
91
+ key: x
92
+ action: draw.rectangle
93
+
94
+ The ``group`` action selects the style group named by ``param``. The other actions are:
95
+
96
+ - Navigation: ``pan.left ``, ``pan.right ``, ``pan.up ``, ``pan.down ``, ``zoom.in ``, ``zoom.out ``, ``rotate.ccw ``, ``rotate.cw ``, ``rotate.0 `` (reset rotation), and ``zoom.0 ``, ``zoom.3 ``, ... ``zoom.18 `` (jump to a zoom level). For the panning, zooming, and rotating actions, only the base key is set; holding shift or ctrl+shift with it still makes a larger step.
97
+ - Annotations: ``annotations.toggle ``, ``annotation.create ``, ``element.edit ``, ``element.menu ``, ``select.rectangle ``, ``select.polygon ``, ``select.clear ``.
98
+ - Drawing: ``draw.point ``, ``draw.rectangle ``, ``draw.ellipse ``, ``draw.circle ``, ``draw.polygon ``, ``draw.line ``, ``draw.brush ``, ``draw.finish ``, ``draw.cancel ``, ``brush.shape ``, ``brush.smaller ``, ``brush.larger ``, ``group.previous ``, ``group.next ``.
99
+ - Channels and bands: ``layer.1 `` through ``layer.20 `` toggle the visibility of that channel or band when compositing in the frame selector. By default these are ctrl+1 through ctrl+0 and ctrl+alt+1 through ctrl+alt+0.
100
+
101
+ User Hotkeys
102
+ ~~~~~~~~~~~~
103
+
104
+ Logged-in users can choose their own keys from **Keyboard shortcuts** in the user menu. These are saved as a ``hotkeys `` section, in the same format as above, in a ``.histomicsui_user_config.yaml `` file in the user's private folder (normally ``Private ``; see large_image's per-user configuration files), which can also be edited directly. If the user makes that folder public, their hotkeys no longer apply. User hotkeys apply in every folder and take precedence over the folder's config file. **Reset all** in the dialog removes them.
105
+
106
+ Text Annotations
107
+ ________________
108
+
109
+ When typing a text annotation, the enter key adds a line and control-enter finishes the text. This can be switched so that enter finishes the text and shift-enter or control-enter adds a line. Clicking elsewhere always finishes the text, and escape always cancels it.
110
+
111
+ ::
112
+
113
+ ---
114
+ textAnnotations:
115
+ # "newline" (the default): enter adds a line and control-enter finishes.
116
+ # "finish": enter finishes and shift-enter or control-enter adds a line.
117
+ enterKey: finish
81
118
 
82
119
  Unselected Annotation Capacity
83
120
  ______________________________
@@ -1,6 +1,8 @@
1
1
  Mouse and Keyboard Controls
2
2
  ===========================
3
3
 
4
+ The keys listed here are the defaults. Most of them can be changed by an administrator in a folder's config file (see :doc:`config_options`) or by each user from **Keyboard shortcuts** in the user menu.
5
+
4
6
  Basic Image Controls
5
7
  --------------------
6
8
 
@@ -111,10 +113,21 @@ Annotation Controls
111
113
 
112
114
  - **Draw an annotation element**:
113
115
 
114
- - **o**, **r**, **i**, **c**, **p**, **l**, **b**: Switch to point,
115
- rectangle, ellipse, circle, polygon, line, or brush drawing mode. If
116
+ - **o**, **r**, **i**, **c**, **p**, **l**, **t**, **b**: Switch to point,
117
+ rectangle, ellipse, circle, polygon, line, text, or brush drawing mode. If
116
118
  already in that mode, turn off drawing mode.
117
119
 
120
+ - In text mode, click to place the text and then type it in place. The
121
+ text is centered on the clicked location. **Enter** adds another line.
122
+ **Ctrl-Enter** or clicking elsewhere finishes the text, and **Escape**
123
+ cancels it. Text that is empty or only whitespace is discarded. What
124
+ **Enter** does can be changed in the config file.
125
+
126
+ - Use "Edit Shape" on existing text to change it: drag the text to move
127
+ it, or click it to edit it in place. Clicking elsewhere finishes and
128
+ **Escape** cancels. If all of the text is removed, the element is
129
+ deleted.
130
+
118
131
  - **shift**: When drawing a rectangle or an ellipse, after starting to draw
119
132
  it, holding down shift will adjust it to a square or circle.
120
133
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: histomicsui
3
- Version: 1.8.1.dev225
3
+ Version: 1.8.1.dev260
4
4
  Summary: Organize, visualize, and analyze histology images.
5
5
  Home-page: https://github.com/DigitalSlideArchive/histomicsui
6
6
  Author: Kitware, Inc.
@@ -11,22 +11,22 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Natural Language :: English
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: >=3.10
18
+ Classifier: Programming Language :: Python :: 3.15
19
+ Requires-Python: >=3.11
20
20
  Description-Content-Type: text/x-rst
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
23
  Requires-Dist: girder>=5
24
24
  Requires-Dist: girder-jobs>=5
25
25
  Requires-Dist: girder-slicer-cli-web>=5
26
- Requires-Dist: girder-large-image==1.35.5a199
27
- Requires-Dist: girder-large-image-annotation==1.35.5a199
28
- Requires-Dist: large-image-tasks==1.35.5a199
29
- Requires-Dist: large-image-converter==1.35.5a199
26
+ Requires-Dist: girder-large-image==1.37.1a210
27
+ Requires-Dist: girder-large-image-annotation==1.37.1a210
28
+ Requires-Dist: large-image-tasks==1.37.1a210
29
+ Requires-Dist: large-image-converter==1.37.1a210
30
30
  Provides-Extra: analysis
31
31
  Dynamic: author
32
32
  Dynamic: author-email
@@ -74,6 +74,7 @@ tests/web_client_specs/allowedGroupsSpec.js
74
74
  tests/web_client_specs/analysisSpec.js
75
75
  tests/web_client_specs/annotationSpec.js
76
76
  tests/web_client_specs/girderUISpec.js
77
+ tests/web_client_specs/hotkeysSpec.js
77
78
  tests/web_client_specs/huiSpec.js
78
79
  tests/web_client_specs/huiTest.js
79
80
  tests/web_client_specs/itemSpec.js
@@ -0,0 +1,9 @@
1
+ girder>=5
2
+ girder-jobs>=5
3
+ girder-slicer-cli-web>=5
4
+ girder-large-image==1.37.1a210
5
+ girder-large-image-annotation==1.37.1a210
6
+ large-image-tasks==1.37.1a210
7
+ large-image-converter==1.37.1a210
8
+
9
+ [analysis]
@@ -46,6 +46,7 @@
46
46
  "histomicsui/web_client/collections/index.js",
47
47
  "histomicsui/web_client/dialogs/confirmDialog.js",
48
48
  "histomicsui/web_client/dialogs/editElement.js",
49
+ "histomicsui/web_client/dialogs/editHotkeys.js",
49
50
  "histomicsui/web_client/dialogs/editRegionOfInterest.js",
50
51
  "histomicsui/web_client/dialogs/editStyleGroups.js",
51
52
  "histomicsui/web_client/dialogs/index.js",
@@ -55,6 +56,7 @@
55
56
  "histomicsui/web_client/dialogs/saveAnnotation.js",
56
57
  "histomicsui/web_client/events.js",
57
58
  "histomicsui/web_client/histomicsui.ts",
59
+ "histomicsui/web_client/hotkeys.js",
58
60
  "histomicsui/web_client/index.html",
59
61
  "histomicsui/web_client/index.js",
60
62
  "histomicsui/web_client/main.js",
@@ -77,6 +79,7 @@
77
79
  "histomicsui/web_client/static/favicon.png",
78
80
  "histomicsui/web_client/stylesheets/body/configView.styl",
79
81
  "histomicsui/web_client/stylesheets/body/image.styl",
82
+ "histomicsui/web_client/stylesheets/dialogs/editHotkeys.styl",
80
83
  "histomicsui/web_client/stylesheets/dialogs/editStyleGroups.styl",
81
84
  "histomicsui/web_client/stylesheets/dialogs/metadataPlot.styl",
82
85
  "histomicsui/web_client/stylesheets/dialogs/openAnnotatedImage.styl",
@@ -103,6 +106,7 @@
103
106
  "histomicsui/web_client/templates/dialogs/annotatedImageList.pug",
104
107
  "histomicsui/web_client/templates/dialogs/confirmDialog.pug",
105
108
  "histomicsui/web_client/templates/dialogs/editElement.pug",
109
+ "histomicsui/web_client/templates/dialogs/editHotkeys.pug",
106
110
  "histomicsui/web_client/templates/dialogs/editRegionOfInterest.pug",
107
111
  "histomicsui/web_client/templates/dialogs/editStyleGroups.pug",
108
112
  "histomicsui/web_client/templates/dialogs/metadataPlot.pug",
@@ -201,6 +205,7 @@
201
205
  "tests/web_client_specs/analysisSpec.js",
202
206
  "tests/web_client_specs/annotationSpec.js",
203
207
  "tests/web_client_specs/girderUISpec.js",
208
+ "tests/web_client_specs/hotkeysSpec.js",
204
209
  "tests/web_client_specs/huiSpec.js",
205
210
  "tests/web_client_specs/huiTest.js",
206
211
  "tests/web_client_specs/itemSpec.js",
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "1.8.0",
3
+ "distance": 260,
4
+ "node": "gecc825421bbc015fcb861505cdf5985a8bbd0661",
5
+ "dirty": false,
6
+ "branch": "girder-5",
7
+ "node_date": "2026-11-23"
8
+ }
@@ -35,20 +35,20 @@ setup(
35
35
  'License :: OSI Approved :: Apache Software License',
36
36
  'Natural Language :: English',
37
37
  'Programming Language :: Python :: 3',
38
- 'Programming Language :: Python :: 3.10',
39
38
  'Programming Language :: Python :: 3.11',
40
39
  'Programming Language :: Python :: 3.12',
41
40
  'Programming Language :: Python :: 3.13',
42
41
  'Programming Language :: Python :: 3.14',
42
+ 'Programming Language :: Python :: 3.15',
43
43
  ],
44
44
  install_requires=[
45
45
  'girder>=5',
46
46
  'girder-jobs>=5',
47
47
  'girder-slicer-cli-web>=5',
48
- 'girder-large-image==1.35.5a199',
49
- 'girder-large-image-annotation==1.35.5a199',
50
- 'large-image-tasks==1.35.5a199',
51
- 'large-image-converter==1.35.5a199',
48
+ 'girder-large-image==1.37.1a210',
49
+ 'girder-large-image-annotation==1.37.1a210',
50
+ 'large-image-tasks==1.37.1a210',
51
+ 'large-image-converter==1.37.1a210',
52
52
  ],
53
53
  extras_require={
54
54
  'analysis': [], # kept for backwards compatibility
@@ -61,7 +61,7 @@ setup(
61
61
  packages=find_packages(exclude=['test', 'test.*']),
62
62
  url='https://github.com/DigitalSlideArchive/histomicsui',
63
63
  zip_safe=False,
64
- python_requires='>=3.10',
64
+ python_requires='>=3.11',
65
65
  entry_points={
66
66
  'girder.plugin': [
67
67
  'histomicsui = histomicsui:GirderPlugin',
@@ -30,6 +30,7 @@ annotationGroups:
30
30
  lineWidth: 4
31
31
  -
32
32
  id: Red
33
+ hotkey: shift+r
33
34
  fillColor: rgba(255, 0, 0, 0.25)
34
35
  lineColor: rgb(255, 0, 0)
35
36
  lineWidth: 2
@@ -206,7 +206,7 @@ girderTest.promise.done(function () {
206
206
 
207
207
  it('creates a restricted and an unrestricted annotation', function () {
208
208
  createAnnotation('restricted annotation for #5', {
209
- allowed_groups: ['groupE', 'groupF']
209
+ allowed_groups: ['groupF', 'groupG']
210
210
  }, [rectangleElement(30, 30)], restricted);
211
211
  });
212
212
 
@@ -214,16 +214,16 @@ girderTest.promise.done(function () {
214
214
  createAnnotation('unrestricted annotation for #5', {}, [rectangleElement(40, 40)], unrestricted);
215
215
  });
216
216
 
217
- it('auto-creates the restricted annotation\'s allowed groups (groupE/groupF) as styles', function () {
218
- // briefly edit the restricted annotation in the Draw panel to create groupE and
219
- // groupF before switching the active annotation below.
217
+ it('auto-creates the restricted annotation\'s allowed groups (groupF/groupG) as styles', function () {
218
+ // briefly edit the restricted annotation in the Draw panel to create groupF and
219
+ // groupG before switching the active annotation below.
220
220
  var bodyView = huiTest.app.bodyView;
221
221
  bodyView.annotations.add(restricted.annotation);
222
222
  bodyView._editAnnotation(restricted.annotation);
223
223
  waitsFor(function () {
224
224
  return !!bodyView.drawWidget &&
225
- bodyView.drawWidget._groups.has('groupE') &&
226
- bodyView.drawWidget._groups.has('groupF');
225
+ bodyView.drawWidget._groups.has('groupF') &&
226
+ bodyView.drawWidget._groups.has('groupG');
227
227
  });
228
228
  });
229
229
 
@@ -247,7 +247,7 @@ girderTest.promise.done(function () {
247
247
  bodyView._selectElement(element);
248
248
 
249
249
  var groups = bodyView.contextMenu._getAnnotationGroups();
250
- expect(groups.sort()).toEqual(['groupE', 'groupF']);
250
+ expect(groups.sort()).toEqual(['groupF', 'groupG']);
251
251
  });
252
252
  });
253
253
 
@@ -274,7 +274,7 @@ girderTest.promise.done(function () {
274
274
  var renderedGroups = bodyView.contextMenu.$('.h-set-group').map(function () {
275
275
  return window.$(this).data('group');
276
276
  }).get();
277
- expect(renderedGroups.sort()).toEqual(['groupE', 'groupF']);
277
+ expect(renderedGroups.sort()).toEqual(['groupF', 'groupG']);
278
278
  });
279
279
  });
280
280
  });
@@ -352,32 +352,32 @@ girderTest.promise.done(function () {
352
352
  // simulate editing the annotation's metadata via the "Edit annotation" dialog,
353
353
  // which mutates attributes directly and triggers 'change:annotation' rather than
354
354
  // calling .set()
355
- result.annotation.get('annotation').attributes = {allowed_groups: ['groupG', 'groupH']};
355
+ result.annotation.get('annotation').attributes = {allowed_groups: ['groupF', 'groupG']};
356
356
  result.annotation.trigger('change:annotation', result.annotation, {});
357
357
 
358
358
  waitsFor(function () {
359
359
  // the Draw panel's `_groups` collection updates synchronously, but its dropdown
360
360
  // DOM is refreshed via a debounced render, so also wait for the DOM to catch up
361
361
  // before asserting on it
362
- return drawWidget._groups.has('groupG') && drawWidget._groups.has('groupH') &&
362
+ return drawWidget._groups.has('groupF') && drawWidget._groups.has('groupG') &&
363
363
  drawWidget.$('.h-style-group option').length === 2;
364
364
  });
365
365
  runs(function () {
366
- expect(drawWidget._style.id).toBe('groupG');
366
+ expect(drawWidget._style.id).toBe('groupF');
367
367
  var drawValues = drawWidget.$('.h-style-group option').map(function () {
368
368
  return this.value;
369
369
  }).get();
370
- expect(drawValues).toEqual(['groupG', 'groupH']);
370
+ expect(drawValues).toEqual(['groupF', 'groupG']);
371
371
  });
372
372
  // the context menu keeps its own StyleCollection, refetched asynchronously via the
373
373
  // 'h:styleGroupsEdited' event once the Draw panel auto-creates the newly allowed
374
374
  // groups; wait for that refetch to complete before checking it
375
375
  waitsFor(function () {
376
- return bodyView.contextMenu.styles.get('groupG') && bodyView.contextMenu.styles.get('groupH');
376
+ return bodyView.contextMenu.styles.get('groupF') && bodyView.contextMenu.styles.get('groupG');
377
377
  });
378
378
  runs(function () {
379
379
  var contextGroups = bodyView.contextMenu._getAnnotationGroups();
380
- expect(contextGroups.sort()).toEqual(['groupG', 'groupH']);
380
+ expect(contextGroups.sort()).toEqual(['groupF', 'groupG']);
381
381
  });
382
382
  });
383
383
  });
@@ -39,12 +39,14 @@ girderTest.promise.done(function () {
39
39
 
40
40
  it('get dropdown values', function () {
41
41
  var $el = $('.h-analyses-dropdown');
42
- expect($el.find('a:contains("huirchive/histomicstk")').length).toBe(1);
42
+ var image = $el.find('.h-analyses-image a:contains("huirchive/histomicstk")');
43
+ expect(image.length).toBe(1);
44
+ expect($el.find('.h-analyses-recent').length).toBe(0);
45
+ image.click();
43
46
 
44
- $el = $el.find('.dropdown-submenu:first');
45
- expect($el.find('a:contains("latest")').length).toBe(1);
47
+ $el = $el.find('.h-analyses-task-group.h-active');
48
+ expect($el.find('.h-analyses-version-name:contains("latest")').length).toBe(1);
46
49
 
47
- $el = $el.find('.dropdown-menu:first');
48
50
  var link = $el.find('a:contains("NucleiDetection")');
49
51
  expect(link.length).toBe(1);
50
52
 
@@ -124,10 +126,12 @@ girderTest.promise.done(function () {
124
126
  });
125
127
  it('open a new analysis', function () {
126
128
  var $el = $('.h-analyses-dropdown');
127
- expect($el.find('a:contains("huirchive/histomicstk")').length).toBe(1);
129
+ var image = $el.find('.h-analyses-image a:contains("huirchive/histomicstk")');
130
+ expect(image.length).toBe(1);
131
+ image.click();
128
132
 
129
- $el = $el.find('.dropdown-submenu:first');
130
- expect($el.find('a:contains("latest")').length).toBe(1);
133
+ $el = $el.find('.h-analyses-task-group.h-active');
134
+ expect($el.find('.h-analyses-version-name:contains("latest")').length).toBe(1);
131
135
 
132
136
  var link = $el.find('a:contains("ComputeNucleiFeatures")');
133
137
  expect(link.length).toBe(1);
@@ -157,9 +161,50 @@ girderTest.promise.done(function () {
157
161
  }, 'region annotation to be removed');
158
162
  });
159
163
  });
164
+ describe('analyses menu', function () {
165
+ it('recently used', function () {
166
+ var $el = $('.h-analyses-dropdown');
167
+ expect($el.find('.h-analyses-recent').length).toBe(1);
168
+ $el.find('.h-analyses-recent a').click();
169
+ var links = $el.find('.h-analyses-task-group.h-active .h-analysis-item');
170
+ expect(links.length).toBe(2);
171
+ expect(links.eq(0).attr('data-cli')).toBe('ComputeNucleiFeatures');
172
+ expect(links.eq(0).find('.h-analyses-item-source').text()).toBe('huirchive/histomicstk:latest');
173
+ expect(links.eq(1).attr('data-cli')).toBe('NucleiDetection');
174
+ });
175
+ it('filter', function () {
176
+ var $el = $('.h-analyses-dropdown');
177
+ $el.find('.h-analyses-filter').val('histomicstk detect').trigger('input');
178
+ var links = $el.find('li:not(.hidden) > .h-analysis-item');
179
+ // one in the recently used list and one in the image
180
+ expect(links.length).toBe(2);
181
+ expect(links.filter('[data-cli="NucleiDetection"]').length).toBe(2);
182
+ expect($el.find('.h-analyses-empty').hasClass('hidden')).toBe(true);
183
+
184
+ $el.find('.h-analyses-filter').val('nosuchanalysis').trigger('input');
185
+ expect($el.find('li:not(.hidden) > .h-analysis-item').length).toBe(0);
186
+ expect($el.find('.h-analyses-image:not(.hidden)').length).toBe(0);
187
+ expect($el.find('.h-analyses-empty').hasClass('hidden')).toBe(false);
188
+
189
+ $el.find('.h-analyses-filter').val('').trigger('input');
190
+ expect($el.find('li:not(.hidden) > .h-analysis-item').length).toBe(4);
191
+ expect($el.find('.h-analyses-image:not(.hidden)').length).toBe(2);
192
+ expect($el.find('.h-analyses-task-group.h-active').length).toBe(1);
193
+ });
194
+ it('keyboard', function () {
195
+ var $el = $('.h-analyses-dropdown');
196
+ $el.find('.h-analyses-recent a').click();
197
+ expect($el.find('.h-analyses-task-group.h-active').attr('data-key')).toBe(':recent');
198
+ // moving focus to an image shows its tasks
199
+ $el.find('.h-analyses-image a:contains("huirchive/histomicstk")').trigger('focusin');
200
+ var $group = $el.find('.h-analyses-task-group.h-active');
201
+ expect($group.attr('data-key')).toBe('huirchive/histomicstk');
202
+ expect($group.find('.h-analysis-item').length).toBe(2);
203
+ });
204
+ });
160
205
  describe('close analysis', function () {
161
206
  it('open analysis', function () {
162
- var $el = $('.h-analyses-dropdown');
207
+ var $el = $('.h-analyses-dropdown .h-analyses-task-group[data-key="huirchive/histomicstk"]');
163
208
  var link = $el.find('a:contains("NucleiDetection")');
164
209
  link.click();
165
210
  girderTest.waitForLoad();