Skip to content

Commit

Permalink
Merge pull request #65 from ericpre/hyperspy2.0
Browse files Browse the repository at this point in the history
Update for hyperspy 2.0
  • Loading branch information
ericpre committed Nov 15, 2023
2 parents 0bfb5b7 + bd32acc commit d1aeeee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@ jobs:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.7', '3.9', '3.10', '3.11']
PYTHON_VERSION: ['3.9', '3.10', '3.11']
PIP_SELECTOR: ['[tests]']
LABEL: [-RnMinor]
LABEL: [-RnMajor]
include:
- PYTHON_VERSION: '3.8'
PIP_SELECTOR: '[tests]'
LABEL: -RnMajor
- PYTHON_VERSION: '3.8'
PIP_SELECTOR: '[tests]'
LABEL: -Release
- PYTHON_VERSION: '3.8'
PIP_SELECTOR: '[tests]'
LABEL: -RnPatch
- PYTHON_VERSION: '3.8'
# - PYTHON_VERSION: '3.8'
# PIP_SELECTOR: '[tests]'
# LABEL: -RnMinor
# - PYTHON_VERSION: '3.8'
# PIP_SELECTOR: '[tests]'
# LABEL: -Release
# - PYTHON_VERSION: '3.8'
# PIP_SELECTOR: '[tests]'
# LABEL: -RnPatch
- PYTHON_VERSION: '3.11'
PIP_SELECTOR: '[tests, coverage]'
LABEL: -RnMinor-coverage
LABEL: -RnMajor-coverage
PYTEST_ARGS_COVERAGE: --cov=. --cov-report=xml
- os: ubuntu
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
OLDEST_SUPPORTED_VERSION: true
# Matching setup.py
DEPENDENCIES: traits==5.0 hyperspy==1.7.0 traitsui==6.1 pyqt5==5.12.0
DEPENDENCIES: traits==5.0 traitsui==6.1 pyqt5==5.12.0
PIP_SELECTOR: '[tests]'
# Hang at the end of the test suite run...
#PYTEST_ARGS_COVERAGE: --cov=. --cov-report=xml
LABEL: -RnMinor-oldest
LABEL: -RnMajor-oldest

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -83,8 +83,6 @@ jobs:
shell: bash
if: contains( matrix.LABEL, 'RnMajor')
run: |
# Remove once rosettasciio is released
pip install https://github.com/hyperspy/rosettasciio/archive/refs/heads/main.zip
pip install https://github.com/hyperspy/hyperspy/archive/RELEASE_next_major.zip
- name: Install HyperSpy (RELEASE_next_patch)
Expand Down
5 changes: 1 addition & 4 deletions hyperspy_gui_traitsui/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,8 @@ def spikes_removal_traitsui(obj, **kwargs):
),
tu.Group(
'add_noise',
'interpolator_kind',
'default_spike_width',
tu.Group(
'spline_order',
enabled_when='interpolator_kind == "Spline"'),
'spline_order',
show_border=True,
label='Advanced settings'),
),
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down

0 comments on commit d1aeeee

Please sign in to comment.