Skip to content

Commit

Permalink
install MNE via pip (#18)
Browse files Browse the repository at this point in the history
* install MNE via pip

* fix test on nightly
  • Loading branch information
palday committed Aug 8, 2023
1 parent 3771210 commit 3cd9321
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 6 additions & 3 deletions CondaPkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ channels = ["anaconda", "conda-forge"]

[deps]
# Conda package names and versions
python = ">=3.7,<4"
python = ">=3.4,<4"
# see https://mne.tools/stable/install/manual_install.html#installing-mne-python-with-all-dependencies
# CondaPkg uses mamba by default
mne = ">=1.0, <2"
# currently broken when using conda deps
# xref: https://github.com/beacon-biosignals/PyMNE.jl/issues/17
# xref: https://github.com/cjdoris/PythonCall.jl/issues/315
# mne = ">=1.4"

[pip.deps]
# Pip package names and versions
mne = ">=1.4"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PyMNE"
uuid = "6c5003b2-cbe8-491c-a0d1-70088e6a0fd6"
authors = ["Beacon Biosignals, Inc."]
version = "0.2.1"
version = "0.2.2"

[deps]
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ This package uses [`PythonCall`](https://cjdoris.github.io/PythonCall.jl) to mak
MNE-Python and its dependencies need to be installed in order for this to work
and PyMNE will attempt to install when the package is built: this should happen
more or less automatically via [`CondaPkg`](https://github.com/cjdoris/CondaPkg.jl).
You can configure various options via `CondaPkg`. MNE-Python is installed via
Conda, not via pip.
You can configure various options via `CondaPkg`.

## Usage

Expand All @@ -36,7 +35,7 @@ You need to explicitly convert vectors of strings to a `PyList`. For instance
```julia
data = raw.get_data(picks=["Oz","Cz"])
```
does not work, whereas
does not work, whereas
```julia
data = raw.get_data(picks=pylist(["Oz","Cz"]))
```
Expand Down

2 comments on commit 3cd9321

@palday
Copy link
Member Author

@palday palday commented on 3cd9321 Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/89298

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.2 -m "<description of version>" 3cd93213f3d6b652aa2dc7f9855e1ad97f1b61ef
git push origin v0.2.2

Please sign in to comment.