Skip to content

Commit 4e9f1f4

Browse files
Matplotlib backend (#1)
* stop using matplotlib agg backend * update github links from BlueBrain to openbraininstitute * remove python 3.8 tests and support --------- Co-authored-by: Aurélien Jaquier
1 parent e119ed0 commit 4e9f1f4

File tree

12 files changed

+21
-31
lines changed

12 files changed

+21
-31
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
call-test-workflow:
12-
uses: BlueBrain/Currentscape/.github/workflows/test.yml@main
12+
uses: openbraininstitute/Currentscape/.github/workflows/test.yml@main
1313

1414
build-tag-n-publish:
1515
name: Build, tag and publish on PyPI

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1414

1515
steps:
1616
- uses: actions/checkout@v2

README.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Currentscape figures plot the percentage of inward and outward ionic membrane cu
2828
the total inward and outward currents, as well as the voltage in function of time.
2929
It allows modellers to see which currents play a role at any given time during a simulation, and check in depth the current dynamics.
3030

31-
.. image:: https://raw.githubusercontent.com/BlueBrain/Currentscape/main/doc/source/images/plot.png
31+
.. image:: https://raw.githubusercontent.com/openbraininstitute/Currentscape/main/doc/source/images/plot.png
3232

3333
Citation
3434
========
@@ -70,12 +70,12 @@ When you use this Currentscape software for your research, we ask you to cite th
7070
Support
7171
=======
7272

73-
We are providing support on `Gitter <https://gitter.im/BlueBrain/Currentscape>`_. We suggest you create tickets on the `Github issue tracker <https://github.com/BlueBrain/Currentscape/issues>`_ in case you encounter problems while using the software or if you have some suggestions.
73+
We are providing support on `Gitter <https://gitter.im/openbraininstitute/Currentscape>`_. We suggest you create tickets on the `Github issue tracker <https://github.com/openbraininstitute/Currentscape/issues>`_ in case you encounter problems while using the software or if you have some suggestions.
7474

7575
Main dependencies
7676
=================
7777

78-
- `Python 3.8+ <https://www.python.org/downloads/release/python-380/>`_
78+
- `Python 3.9+ <https://www.python.org/downloads/release/python-390/>`_
7979
- `Numpy <https://numpy.org/>`_ (automatically installed by pip)
8080
- `Palettable <https://github.com/jiffyclub/palettable>`_ (automatically installed by pip)
8181

@@ -209,7 +209,7 @@ When you then execute the following python code, a window should open with the c
209209
210210
When you run this code in Python, it will generate the following currentscape plot (in a window, and on disk as quickstart_plot.png):
211211

212-
.. image:: https://raw.githubusercontent.com/BlueBrain/Currentscape/main/doc/source/images/quickstart_plot.png
212+
.. image:: https://raw.githubusercontent.com/openbraininstitute/Currentscape/main/doc/source/images/quickstart_plot.png
213213

214214
Tutorial
215215
========
@@ -230,6 +230,8 @@ The part of the code in this repository developed by the EPFL Blue Brain Project
230230

231231
Copyright (c) 2023-2024 Blue Brain Project/EPFL
232232

233+
Copyright (c) 2025 Open Brain Institute
234+
233235

234236
.. |pypi| image:: https://img.shields.io/pypi/v/currentscape.svg
235237
:target: https://pypi.org/project/currentscape/
@@ -240,20 +242,20 @@ Copyright (c) 2023-2024 Blue Brain Project/EPFL
240242
:alt: latest documentation
241243

242244
.. |license| image:: https://img.shields.io/pypi/l/currentscape.svg
243-
:target: https://github.com/BlueBrain/Currentscape/blob/main/LICENSE.txt
245+
:target: https://github.com/openbraininstitute/Currentscape/blob/main/LICENSE.txt
244246
:alt: license
245247

246-
.. |build| image:: https://github.com/BlueBrain/Currentscape/workflows/test.yml/badge.svg?branch=main
247-
:target: https://github.com/BlueBrain/Currentscape/actions
248+
.. |build| image:: https://github.com/openbraininstitute/Currentscape/workflows/test.yml/badge.svg?branch=main
249+
:target: https://github.com/openbraininstitute/Currentscape/actions
248250
:alt: actions build status
249251

250-
.. |coverage| image:: https://codecov.io/github/BlueBrain/Currentscape/coverage.svg?branch=main
251-
:target: https://codecov.io/gh/BlueBrain/currentscape
252+
.. |coverage| image:: https://codecov.io/github/openbraininstitute/Currentscape/coverage.svg?branch=main
253+
:target: https://codecov.io/gh/openbraininstitute/currentscape
252254
:alt: coverage
253255

254256
.. |gitter| image:: https://badges.gitter.im/Join%20Chat.svg
255-
:target: https://gitter.im/BlueBrain/Currentscape
256-
:alt: Join the chat at https://gitter.im/BlueBrain/Currentscape
257+
:target: https://gitter.im/openbraininstitute/Currentscape
258+
:alt: Join the chat at https://gitter.im/openbraininstitute/Currentscape
257259

258260
.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8046484.svg
259261
:target: https://doi.org/10.5281/zenodo.8046373

Tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Run cell and plot Currentscape
300300
==============================
301301

302302
You can see an example of how to extract currents and ionic concentractions with bluepyopt and emodelrunner in the example folder: :code:`examples/use_case`.
303-
Please note that you should have `bluepyopt <https://github.com/BlueBrain/BluePyOpt>`_, `emodelrunner <https://github.com/BlueBrain/EModelRunner>`_ and `NEURON <https://neuron.yale.edu/neuron/>`_ installed in order to run the example.
303+
Please note that you should have `bluepyopt <https://github.com/openbraininstitute/BluePyOpt>`_, `emodelrunner <https://github.com/BlueBrain/EModelRunner>`_ and `NEURON <https://neuron.yale.edu/neuron/>`_ installed in order to run the example.
304304
The example folder contains
305305
a cell,
306306
a script to run the cell by applying to it a step stimulus and record its voltage, current and ionic concentration traces,

currentscape/currents.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
# pylint: disable=wrong-import-position, super-with-arguments
2323
import math
2424
import numpy as np
25-
import matplotlib
2625

27-
matplotlib.use("agg") # to avoid tkinter error
2826
import matplotlib.pyplot as plt
2927

3028
from currentscape.datasets import DataSet

currentscape/currentscape.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
# pylint: disable=too-many-statements, wrong-import-position
2323
import logging
2424
import numpy as np
25-
import matplotlib
2625

27-
matplotlib.use("agg") # to avoid tkinter error
2826
import matplotlib.pyplot as plt
2927

3028
from currentscape.data_processing import (

currentscape/ions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
# pylint: disable=wrong-import-position, super-with-arguments
1818
import numpy as np
19-
import matplotlib
2019

21-
matplotlib.use("agg") # to avoid tkinter error
2220
import matplotlib.pyplot as plt
2321

2422
from currentscape.datasets import DataSet

currentscape/legends.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import matplotlib
2020

21-
matplotlib.use("agg") # to avoid tkinter error
2221
from matplotlib.legend_handler import HandlerTuple
2322

2423
from currentscape.mapper import map_colors

currentscape/plotting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import numpy as np
2222
import matplotlib
2323

24-
matplotlib.use("agg") # to avoid tkinter error
2524
import matplotlib.pyplot as plt
2625

2726
import palettable as pltb

currentscape/voltages.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
# pylint: disable=wrong-import-position, super-with-arguments
1818
import numpy as np
19-
import matplotlib
2019

21-
matplotlib.use("agg") # to avoid tkinter error
2220
import matplotlib.pyplot as plt
2321

2422
from currentscape.datasets import DataSet

0 commit comments

Comments
 (0)