bec-widgets 2.0.1__py3-none-any.whl → 2.0.3__py3-none-any.whl

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.
.gitlab-ci.yml CHANGED
@@ -13,7 +13,7 @@ variables:
13
13
  value: main
14
14
  CHILD_PIPELINE_BRANCH: $CI_DEFAULT_BRANCH
15
15
  CHECK_PKG_VERSIONS:
16
- description: Whether to run additional tests against min/max/random selection of dependencies. Set to 1 for running.
16
+ description: Whether to run additional tests against min/max/random selection of dependencies. Set to 1 for running.
17
17
  value: 0
18
18
 
19
19
  workflow:
@@ -162,6 +162,20 @@ tests:
162
162
  - tests/reference_failures/
163
163
  when: always
164
164
 
165
+ generate-client-check:
166
+ stage: test
167
+ needs: []
168
+ variables:
169
+ QT_QPA_PLATFORM: "offscreen"
170
+ script:
171
+ - *clone-repos
172
+ - *install-os-packages
173
+ - *install-repos
174
+ - pip install -e .[dev,pyside6]
175
+ - bw-generate-cli --target bec_widgets
176
+ # if there are changes in the generated files, fail the job
177
+ - git diff --exit-code
178
+
165
179
  test-matrix:
166
180
  parallel:
167
181
  matrix:
@@ -231,7 +245,7 @@ end-2-end-conda:
231
245
  - if: '$CI_PIPELINE_SOURCE == "parent_pipeline"'
232
246
  - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"'
233
247
  - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "production"'
234
- - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^pre_release.*$/'
248
+ - if: "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^pre_release.*$/"
235
249
 
236
250
  semver:
237
251
  stage: Deploy
CHANGELOG.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.0.3 (2025-05-02)
5
+
6
+ ### Bug Fixes
7
+
8
+ - **generate_cli**: Apply isort config
9
+ ([`770dbd4`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/770dbd4b63baba588871a4d4ffa77d44872d085b))
10
+
11
+ - **image_item**: Wrong user access name for rotation
12
+ ([`58a0bc7`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/58a0bc79742e7e7578988711a9840ed6041d9a69))
13
+
14
+ ### Continuous Integration
15
+
16
+ - Add job to test that the generated client is up to date
17
+ ([`d22035f`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d22035f8974ac51ae1b6efc0e2b3749ca0a674ff))
18
+
19
+
20
+ ## v2.0.2 (2025-05-01)
21
+
22
+ ### Bug Fixes
23
+
24
+ - **plot_base**: No content margin for plot_widget window
25
+ ([`1b78840`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/1b78840fd87ea0f156c73beeb57c6c06f685f7b1))
26
+
27
+
4
28
  ## v2.0.1 (2025-04-30)
5
29
 
6
30
  ### Bug Fixes
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
bec_widgets/cli/client.py CHANGED
@@ -1317,14 +1317,14 @@ class ImageItem(RPCBase):
1317
1317
 
1318
1318
  @property
1319
1319
  @rpc_call
1320
- def rotation(self) -> "Optional[int]":
1320
+ def num_rotation_90(self) -> "Optional[int]":
1321
1321
  """
1322
1322
  Get or set the number of 90° rotations to apply.
1323
1323
  """
1324
1324
 
1325
- @rotation.setter
1325
+ @num_rotation_90.setter
1326
1326
  @rpc_call
1327
- def rotation(self) -> "Optional[int]":
1327
+ def num_rotation_90(self) -> "Optional[int]":
1328
1328
  """
1329
1329
  Get or set the number of 90° rotations to apply.
1330
1330
  """
@@ -222,18 +222,18 @@ class {class_name}(RPCBase):"""
222
222
  # Combine header and content, then format with black
223
223
  full_content = self.header + "\n" + self.content
224
224
  try:
225
- formatted_content = black.format_str(full_content, mode=black.FileMode(line_length=100))
225
+ formatted_content = black.format_str(full_content, mode=black.Mode(line_length=100))
226
226
  except black.NothingChanged:
227
227
  formatted_content = full_content
228
228
 
229
- isort.Config(
229
+ config = isort.Config(
230
230
  profile="black",
231
231
  line_length=100,
232
232
  multi_line_output=3,
233
- include_trailing_comma=True,
233
+ include_trailing_comma=False,
234
234
  known_first_party=["bec_widgets"],
235
235
  )
236
- formatted_content = isort.code(formatted_content)
236
+ formatted_content = isort.code(formatted_content, config=config)
237
237
 
238
238
  with open(file_name, "w", encoding="utf-8") as file:
239
239
  file.write(formatted_content)
@@ -318,5 +318,5 @@ def main():
318
318
  if __name__ == "__main__": # pragma: no cover
319
319
  import sys
320
320
 
321
- sys.argv = ["bw-generate-cli", "--target", "csaxs_bec"]
321
+ sys.argv = ["bw-generate-cli", "--target", "bec_widgets"]
322
322
  main()
@@ -61,8 +61,8 @@ class ImageItem(BECConnector, pg.ImageItem):
61
61
  "fft.setter",
62
62
  "log",
63
63
  "log.setter",
64
- "rotation",
65
- "rotation.setter",
64
+ "num_rotation_90",
65
+ "num_rotation_90.setter",
66
66
  "transpose",
67
67
  "transpose.setter",
68
68
  "get_data",
@@ -98,6 +98,7 @@ class PlotBase(BECWidget, QWidget):
98
98
  self._ui_mode = UIMode.POPUP if popups else UIMode.SIDE
99
99
  self.axis_settings_dialog = None
100
100
  self.plot_widget = pg.GraphicsLayoutWidget(parent=self)
101
+ self.plot_widget.ci.setContentsMargins(0, 0, 0, 0)
101
102
  self.plot_item = pg.PlotItem(viewBox=BECViewBox(enableMenu=True))
102
103
  self.plot_widget.addItem(self.plot_item)
103
104
  self.side_panel = SidePanel(self, orientation="left", panel_max_width=280)
@@ -795,6 +796,7 @@ class PlotBase(BECWidget, QWidget):
795
796
  """
796
797
  self.plot_item.showAxis("top", value)
797
798
  self.plot_item.showAxis("right", value)
799
+
798
800
  self.property_changed.emit("outer_axes", value)
799
801
 
800
802
  @SafeProperty(bool, doc="Show inner axes of the plot widget.")
@@ -814,6 +816,7 @@ class PlotBase(BECWidget, QWidget):
814
816
  """
815
817
  self.plot_item.showAxis("bottom", value)
816
818
  self.plot_item.showAxis("left", value)
819
+
817
820
  self._apply_x_label()
818
821
  self._apply_y_label()
819
822
  self.property_changed.emit("inner_axes", value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -1,12 +1,12 @@
1
1
  .gitignore,sha256=cMQ1MLmnoR88aMCCJwUyfoTnufzl4-ckmHtlFUqHcT4,3253
2
- .gitlab-ci.yml,sha256=YVmyUBCO2idU8YRyzvPZig0xl24KGyG5LJF1ohACHgQ,9174
2
+ .gitlab-ci.yml,sha256=AEMwDcgmQNX2jsW5-EZvj5mtTBtIwRu4mNpWyDNUlwM,9516
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=j99yB4BpYVccrFWD2zII_R01krmcIoHuP-GNsj5nMZM,268426
5
+ CHANGELOG.md,sha256=2et0gedcDklH8epl7f2glGAAZH32g9UWv66kuTaaF88,269167
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=WVrRL4w4n3DWT3tPcvT-feWv-okpmDcB6u46JrpEqsY,1172
7
+ PKG-INFO,sha256=FTn0xb6_Jsc0Jfxr-H7a9A_QkBx2pbfUzAlYTgPX5Ac,1172
8
8
  README.md,sha256=KgdKusjlvEvFtdNZCeDMO91y77MWK2iDcYMDziksOr4,2553
9
- pyproject.toml,sha256=eTIgGCjnPS2ekkiafAaBMd90T20ARfvgto5qDZRbzMw,2539
9
+ pyproject.toml,sha256=G7GylYJKct5QDnu0H2uF4SR5v2jJoSkVk8oNyEMbkB4,2539
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
12
12
  .gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
@@ -22,9 +22,9 @@ bec_widgets/assets/app_icons/auto_update.png,sha256=YKoAJTWAlWzreYvOm0BttDRFr29t
22
22
  bec_widgets/assets/app_icons/bec_widgets_icon.png,sha256=K8dgGwIjalDh9PRHUsSQBqgdX7a00nM3igZdc20pkYM,1747017
23
23
  bec_widgets/assets/app_icons/ui_loader_tile.png,sha256=qSK3XHqvnAVGV9Q0ulORcGFbXJ9LDq2uz8l9uTtMsNk,1812476
24
24
  bec_widgets/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- bec_widgets/cli/client.py,sha256=-jokdJiYkG2WKk7XNR4J9llo6yEmVIPZ-Vp_IKPzWW8,80015
25
+ bec_widgets/cli/client.py,sha256=kvAdg7lTsS9_w-qnXNf6Zq-WU2jUYbUt8bx-izsbGeY,80036
26
26
  bec_widgets/cli/client_utils.py,sha256=F2hyt--jL53bN8NoWifNUMqwwx5FbpS6I1apERdTRzM,18114
27
- bec_widgets/cli/generate_cli.py,sha256=8IwkMxFhMuHHXPolz4nZ77xg6AEqxrY-Tdpq_FtqTv0,10928
27
+ bec_widgets/cli/generate_cli.py,sha256=gxotNNdSs92bjO5B6VjRYbbbQetI1JYwNZZydBziNzk,10951
28
28
  bec_widgets/cli/server.py,sha256=lYEkOaokLbND4KjbXyySzb5nq3YQ6m4L0NAmHAjMCIU,5633
29
29
  bec_widgets/cli/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  bec_widgets/cli/rpc/rpc_base.py,sha256=lqRr3IUqEKNLS_wHYrFbIr824kj6OYH6ky0Lwb-NovU,11130
@@ -240,11 +240,11 @@ bec_widgets/widgets/games/minesweeper.pyproject,sha256=wHrLKY3H8uNiVgb9BIrj4S0Je
240
240
  bec_widgets/widgets/games/minesweeper_plugin.py,sha256=oPEjSTpdIIkvuGThHxhVS8Rp47DWiaXHROtm8NJWYwo,1255
241
241
  bec_widgets/widgets/games/register_minesweeper.py,sha256=8fgMBD3yB-5_eGqhG_qxpj3igXDK9WZfHrdYcA1aqz8,467
242
242
  bec_widgets/widgets/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
243
- bec_widgets/widgets/plots/plot_base.py,sha256=j9cXu0kuX-fQMFiYpL9ah40ALzkwZ3mnZ_bUWTJQ4ck,33787
243
+ bec_widgets/widgets/plots/plot_base.py,sha256=NliWkXihJIPHRJHe-CNIrdjgxONk7uExG_3SsIpyoRQ,33848
244
244
  bec_widgets/widgets/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
245
  bec_widgets/widgets/plots/image/image.py,sha256=IBu06Okf1VLGRmeq-2aQTYvoQKkHvJZSwZaHx4dYm1I,31506
246
246
  bec_widgets/widgets/plots/image/image.pyproject,sha256=_sRCIu4MNgToaB4D7tUMWq3xKX6T2VoRS3UzGNIseHQ,23
247
- bec_widgets/widgets/plots/image/image_item.py,sha256=qbpXAMMhpSXy10GFQN93bvozsN0mAWzY-s-W-hiE_FU,8714
247
+ bec_widgets/widgets/plots/image/image_item.py,sha256=2bn9H5YLmo7ohQnnf1mLlL24TASnlZNzMvF7buMutmI,8728
248
248
  bec_widgets/widgets/plots/image/image_plugin.py,sha256=R0Hzh2GgYlfZLPZwOMgqLKKIA5DxEnTcSrbI7zTe-tI,1204
249
249
  bec_widgets/widgets/plots/image/image_processor.py,sha256=0qsQIyB__xxBwNIoXhFbB0wSiB8n7n_oX4cvfFsUzOs,4304
250
250
  bec_widgets/widgets/plots/image/register_image.py,sha256=0rvFyAMGRZcknc7nMVwsMGSfY8L2j9cdtQhbO5TMzeM,455
@@ -377,8 +377,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
377
377
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
378
378
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
379
379
  bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
380
- bec_widgets-2.0.1.dist-info/METADATA,sha256=WVrRL4w4n3DWT3tPcvT-feWv-okpmDcB6u46JrpEqsY,1172
381
- bec_widgets-2.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
382
- bec_widgets-2.0.1.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
383
- bec_widgets-2.0.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
384
- bec_widgets-2.0.1.dist-info/RECORD,,
380
+ bec_widgets-2.0.3.dist-info/METADATA,sha256=FTn0xb6_Jsc0Jfxr-H7a9A_QkBx2pbfUzAlYTgPX5Ac,1172
381
+ bec_widgets-2.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
382
+ bec_widgets-2.0.3.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
383
+ bec_widgets-2.0.3.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
384
+ bec_widgets-2.0.3.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "2.0.1"
7
+ version = "2.0.3"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [