Skip to content

Commit f05c54d

Browse files
authored
Remove macos-14 and fix blitting bug (#218)
1 parent ccc0037 commit f05c54d

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/build_wheel.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-14]
14+
platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-15]
1515
env:
1616
CIBW_SKIP: 'pp*'
1717
CIBW_ARCHS: 'auto64'
1818
CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux_2_28'
1919
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.10'
2020
CIBW_TEST_REQUIRES: 'pytest'
21-
MACOSX_DEPLOYMENT_TARGET: '14.0'
21+
MACOSX_DEPLOYMENT_TARGET: '15.0'
2222
defaults:
2323
run:
2424
shell: bash -l {0}
@@ -44,7 +44,7 @@ jobs:
4444
echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc
4545
source ~/.bashrc
4646
- name: Install OMP (MacOS M1)
47-
if: matrix.platform == 'macos-14'
47+
if: matrix.platform == 'macos-15'
4848
run: |
4949
brew install llvm@20 libomp
5050
echo "export CC=/opt/homebrew/opt/llvm@20/bin/clang" >> ~/.bashrc

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = 'setuptools.build_meta'
88

99
[project]
1010
name = "ratapi"
11-
version = "1.0.1.dev0"
11+
version = "1.0.1.dev1"
1212
description = "Python extension for the Reflectivity Analysis Toolbox (RAT)"
1313
readme = "README.md"
1414
requires-python = ">=3.10"

‎ratapi/utils/plotting.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def plot_ref_sld_helper(
142142
A value between 0 and 100 that controls the spacing between the reflectivity plots for each of the contrasts
143143
animated : bool, default: False
144144
Controls whether the animated property of foreground plot elements should be set.
145-
145+
align_profile : bool, default: False
146+
Controls whether the profiles should be aligned.
146147
"""
147148
preserve_zoom = False
148149

@@ -588,10 +589,9 @@ def update_foreground(self, data):
588589

589590
offset = 0
590591
for i in range(len(data.contrastNames)):
591-
for _ in range(int(data.dataPresent[i]) + 1):
592-
self.figure.axes[0].lines[offset].set_data(plot_data["ref"][i][0], plot_data["ref"][i][1])
593-
self.figure.axes[0].draw_artist(self.figure.axes[0].lines[offset])
594-
offset += 1
592+
self.figure.axes[0].lines[offset].set_data(plot_data["ref"][i][0], plot_data["ref"][i][1])
593+
self.figure.axes[0].draw_artist(self.figure.axes[0].lines[offset])
594+
offset += 2 if data.dataPresent[i] else 1
595595

596596
i = 0
597597
for j in range(len(plot_data["sld"])):

0 commit comments

Comments
 (0)