Skip to content

Commit f8af14a

Browse files
committed
Merge branch 'main' into remove_legacy_path_1
2 parents 47ac78b + c19bc18 commit f8af14a

13 files changed

Lines changed: 99 additions & 70 deletions

.github/workflows/full_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- name: Install package
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install .[test]
31+
pip install .
32+
pip install --group test
3233
- name: Pytest
3334
run: |
3435
pytest -m "not library" -v

.github/workflows/full_tests_codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
- name: Install package
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install .[test]
23+
pip install .
24+
pip install --group test
2425
- name: Pytest
2526
run: |
2627
pytest --cov=probeinterface --cov-report xml:./coverage.xml

.readthedocs.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
version: 2
22

33
build:
4-
os: ubuntu-20.04
4+
os: ubuntu-24.04
55
tools:
66
python: "3.10"
7+
jobs:
8+
install:
9+
- pip install -U pip
10+
- pip install .
11+
- pip install --group docs
712

813
sphinx:
914
configuration: doc/conf.py
10-
11-
python:
12-
install:
13-
- method: pip
14-
path: .
15-
extra_requirements:
16-
- docs

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Plotting
6565

6666
.. autofunction:: plot_probe
6767

68-
.. autofunction:: plot_probe_group
68+
.. autofunction:: plot_probegroup
6969

7070
Library
7171
-------

doc/generate_format_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import matplotlib.pyplot as plt
77

88
from probeinterface import Probe, ProbeGroup, combine_probes, write_probeinterface
9-
from probeinterface.plotting import plot_probe, plot_probe_group
9+
from probeinterface.plotting import plot_probe, plot_probegroup
1010

1111
from probeinterface import generate_tetrode
1212

examples/ex_03_generate_probe_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import matplotlib.pyplot as plt
1414

1515
from probeinterface import Probe, ProbeGroup
16-
from probeinterface.plotting import plot_probe_group
16+
from probeinterface.plotting import plot_probegroup
1717
from probeinterface import generate_dummy_probe
1818

1919
##############################################################################
@@ -39,11 +39,11 @@
3939
##############################################################################
4040
#  We can now plot all probes in the same axis:
4141

42-
plot_probe_group(probegroup, same_axes=True)
42+
plot_probegroup(probegroup, same_axes=True)
4343

4444
##############################################################################
4545
#  or in separate axes:
4646

47-
plot_probe_group(probegroup, same_axes=False, with_contact_id=True)
47+
plot_probegroup(probegroup, same_axes=False, with_contact_id=True)
4848

4949
plt.show()

examples/ex_05_device_channel_indices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import matplotlib.pyplot as plt
1818

1919
from probeinterface import Probe, ProbeGroup
20-
from probeinterface.plotting import plot_probe, plot_probe_group
20+
from probeinterface.plotting import plot_probe, plot_probegroup
2121
from probeinterface import generate_multi_columns_probe
2222

2323
##############################################################################
@@ -85,6 +85,6 @@
8585
# The indices of the probe group can also be plotted:
8686

8787
fig, ax = plt.subplots()
88-
plot_probe_group(probegroup, with_contact_id=True, same_axes=True, ax=ax)
88+
plot_probegroup(probegroup, with_contact_id=True, same_axes=True, ax=ax)
8989

9090
plt.show()

examples/ex_06_import_export_to_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import matplotlib.pyplot as plt
2525

2626
from probeinterface import Probe, ProbeGroup
27-
from probeinterface.plotting import plot_probe, plot_probe_group
27+
from probeinterface.plotting import plot_probe, plot_probegroup
2828
from probeinterface import generate_dummy_probe
2929
from probeinterface import write_probeinterface, read_probeinterface
3030
from probeinterface import write_prb, read_prb
@@ -48,7 +48,7 @@
4848
write_probeinterface('my_two_probe_setup.json', probegroup)
4949

5050
probegroup2 = read_probeinterface('my_two_probe_setup.json')
51-
plot_probe_group(probegroup2)
51+
plot_probegroup(probegroup2)
5252

5353
##############################################################################
5454
# The format looks like this:
@@ -98,6 +98,6 @@
9898
f.write(prb_two_tetrodes)
9999

100100
two_tetrode = read_prb('two_tetrodes.prb')
101-
plot_probe_group(two_tetrode, same_axes=False, with_contact_id=True)
101+
plot_probegroup(two_tetrode, same_axes=False, with_contact_id=True)
102102

103103
plt.show()

examples/ex_07_probe_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import matplotlib.pyplot as plt
1818

1919
from probeinterface import Probe, ProbeGroup
20-
from probeinterface.plotting import plot_probe, plot_probe_group
20+
from probeinterface.plotting import plot_probe, plot_probegroup
2121

2222
##############################################################################
2323
# Generate 4 tetrodes:
@@ -35,7 +35,7 @@
3535
df = probegroup.to_dataframe()
3636
df
3737

38-
plot_probe_group(probegroup, with_contact_id=True, same_axes=True)
38+
plot_probegroup(probegroup, with_contact_id=True, same_axes=True)
3939

4040
##############################################################################
4141
# Generate a linear probe:

examples/ex_08_more_plotting_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import matplotlib.pyplot as plt
1414

1515
from probeinterface import Probe, ProbeGroup
16-
from probeinterface.plotting import plot_probe, plot_probe_group
16+
from probeinterface.plotting import plot_probe, plot_probegroup
1717
from probeinterface import generate_multi_columns_probe, generate_linear_probe
1818

1919
##############################################################################

0 commit comments

Comments
 (0)