Skip to content

Commit

Permalink
Merge branch 'mne-tools:main' into handle_bad_marker_coils
Browse files Browse the repository at this point in the history
  • Loading branch information
JD-Zhu authored Jan 31, 2024
2 parents 0256590 + 195a2cc commit 68d3099
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 94 deletions.
66 changes: 0 additions & 66 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,58 +22,6 @@ _check_skip: &check_skip
fi
jobs:
pytest-macos-arm64:
parameters:
scheduled:
type: string
default: "false"
macos:
xcode: "14.2.0"
resource_class: macos.m1.medium.gen1
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- run:
<<: *check_skip
- run:
name: Install Python and dependencies
command: |
set -eo pipefail
brew install [email protected]
which python
which pip
pip install --upgrade pip
pip install --upgrade --only-binary "numpy,scipy,dipy,statsmodels" -ve .[full,test_extra]
# 3D too slow on Apple's software renderer, and numba causes us problems
pip uninstall -y vtk pyvista pyvistaqt numba
mkdir -p test-results
echo "set -eo pipefail" >> $BASH_ENV
- run:
command: mne sys_info
- run:
command: ./tools/get_testing_version.sh && cat testing_version.txt
- restore_cache:
keys:
- data-cache-testing-{{ checksum "testing_version.txt" }}
- run:
command: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
- save_cache:
key: data-cache-testing-{{ checksum "testing_version.txt" }}
paths:
- ~/mne_data/MNE-testing-data # (2.5 G)
- run:
command: pytest -m "not slowtest" --tb=short --cov=mne --cov-report xml -vv mne
- run:
name: Prepare test data upload
command: cp -av junit-results.xml test-results/junit.xml
- store_test_results:
path: ./test-results
# Codecov orb has bugs on macOS (gpg issues)
# - codecov/upload
- run:
command: bash <(curl -s https://codecov.io/bash)

build_docs:
parameters:
scheduled:
Expand Down Expand Up @@ -591,20 +539,6 @@ workflows:
only:
- main

weekly:
jobs:
- pytest-macos-arm64:
name: pytest_macos_arm64_weekly
scheduled: "true"
triggers:
- schedule:
# "At 6:00 AM GMT every Monday"
cron: "0 6 * * 1"
filters:
branches:
only:
- main

monthly:
jobs:
- linkcheck:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:
- os: ubuntu-latest
python: '3.12'
kind: conda
- os: macos-latest
# 3.12 needs https://github.com/conda-forge/dipy-feedstock/pull/50
- os: macos-14 # arm64
python: '3.11'
kind: mamba
- os: macos-latest # intel
python: '3.11'
kind: mamba
- os: windows-latest
Expand Down Expand Up @@ -104,6 +108,9 @@ jobs:
mamba
fmt!=10.2.0
if: ${{ !startswith(matrix.kind, 'pip') }}
# Make sure we have the right Python
- run: python -c "import platform; assert platform.machine() == 'arm64', platform.machine()"
if: matrix.os == 'macos-14'
- run: ./tools/github_actions_dependencies.sh
# Minimal commands on Linux (macOS stalls)
- run: ./tools/get_minimal_commands.sh
Expand Down
1 change: 1 addition & 0 deletions doc/changes/devel/12399.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bugs with :class:`mne.Report` CSS where TOC items could disappear at the bottom of the page, by `Eric Larson`_.
5 changes: 0 additions & 5 deletions mne/html/d3.v3.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions mne/html/mpld3.v0.2.min.js

This file was deleted.

19 changes: 19 additions & 0 deletions mne/report/js_and_css/report.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#container {
position: relative;
padding-bottom: 8rem;
}

#content {
margin-top: 90px;
scroll-behavior: smooth;
position: relative; /* for scrollspy */
}

#toc {
margin-top: 90px;
padding-bottom: 8rem;
}

footer {
margin-top: 8rem;
}
19 changes: 0 additions & 19 deletions mne/report/js_and_css/report.sass

This file was deleted.

2 changes: 1 addition & 1 deletion mne/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
html_include_dir = Path(__file__).parent / "js_and_css"
template_dir = Path(__file__).parent / "templates"
JAVASCRIPT = (html_include_dir / "report.js").read_text(encoding="utf-8")
CSS = (html_include_dir / "report.sass").read_text(encoding="utf-8")
CSS = (html_include_dir / "report.css").read_text(encoding="utf-8")

MAX_IMG_RES = 100 # in dots per inch
MAX_IMG_WIDTH = 850 # in pixels
Expand Down

0 comments on commit 68d3099

Please sign in to comment.