Skip to content

Commit 03925bd

Browse files
authored
Merge pull request #20 from anniegbryant/docs_dev
Start Issues and FAQ page for docs
2 parents a4818f4 + 10541fd commit 03925bd

File tree

5 files changed

+135
-36
lines changed

5 files changed

+135
-36
lines changed

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# -- Project information
44

5-
project = 'PySPI'
5+
project = 'pyspi'
66
copyright = '2022, Oliver M. Cliff'
77
author = 'Oliver M. Cliff'
88

9-
release = '0.3'
10-
version = '0.3.0'
9+
release = '0.4'
10+
version = '0.4.0'
1111

1212
# -- General configuration
1313

docs/source/faq.rst

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
Issues & FAQ
2+
===================================
3+
4+
5+
FAQ
6+
########
7+
8+
Issues
9+
########
10+
11+
12+
Java JVM DLL not found (specific to Mac)
13+
**********************
14+
15+
One user reported the following error when installing `pyspi` on a MacBook Air an M2 chip and Catalina OS:
16+
17+
.. code-block::
18+
19+
OSError: [Errno 0] JVM DLL not found /Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home/lib/libjli.dylib
20+
21+
22+
This issue is similar to those reported `here <https://stackoverflow.com/questions/71504214/jvm-dll-not-found-but-i-can-clearly-see-the-file>`_ and `here <https://github.com/jpype-project/jpype/issues/994>`_; it can arise from the version of OpenJDK identified as the system default. Some Java versions don't include all of the binary (DLL) files that `pyspi` looks for.
23+
24+
We recommend following this `helpful tutorial <https://blog.bigoodyssey.com/how-to-manage-multiple-java-version-in-macos-e5421345f6d0>`_ by Chamika Kasun to install `AdoptOpenJDK <https://adoptopenjdk.net/index.html>`_. In a nutshell, here are the steps you should run:
25+
26+
Install homebrew if you don't already have it:
27+
28+
.. code-block::
29+
30+
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
31+
32+
33+
Install `jenv` as your Java version manager:
34+
35+
.. code-block::
36+
37+
$ brew install jenv
38+
39+
40+
Add `jenv` to your shell's configuration file (e.g. `.bashrc` if you use `bash`):
41+
42+
.. code-block::
43+
44+
$ export PATH="$HOME/.jenv/bin:$PATH"
45+
$ eval "$(jenv init -)"
46+
47+
Source your shell's configuration file:
48+
49+
.. code-block::
50+
51+
$ source ~/.bashrc # If you use bash
52+
53+
Confirm proper installation of `jEnv`:
54+
55+
.. code-block::
56+
57+
$ jenv doctor
58+
59+
Even if this returns some errors, as long as you see `Jenv is correctly loaded`, you're all set. We recommend using `AdoptOpenJDK` version 11, which you can install with the following command:
60+
61+
.. code-block::
62+
63+
$ brew install AdoptOpenJDK/openjdk/adoptopenjdk11
64+
65+
Now, you will need to add your `AdoptOpenJDK` path to your `jEnv` environments. First, you can find where your jdk files are installed with the following command:
66+
67+
.. code-block::
68+
69+
$ /usr/libexec/java_home -V
70+
71+
This will list all your installed java JDK versions. Locate the one for `AdoptOpenJDK` version 11 and paste the path:
72+
73+
.. code-block::
74+
75+
$ jenv add <path_to_adopt_open_jdk_11>
76+
77+
Confirm `AdoptOpenJDK` version 11 was added to `jEnv`:
78+
79+
.. code-block::
80+
81+
$ jenv versions
82+
83+
You can set `AdoptOpenJDK` version 11 as your global Java version with the following:
84+
85+
.. code-block::
86+
87+
$ jenv global <AdoptOpenJDK version>
88+
$ # example:
89+
$ jenv global 11.0

docs/source/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Welcome to PySPI's documentation!
1+
Welcome to pyspi's documentation!
22
===================================
33

4-
**PySPI** (/pie'spy/) is a Python library for simultaneously evaluating hundreds of pairwise interactions directly from multivariate time-series data.
4+
**pyspi** (/pie'spy/) is a Python library for simultaneously evaluating hundreds of pairwise interactions directly from multivariate time-series data.
55

66
It provides easy access to over 250 methods for evaluating the relationship between pairs of time series, from simple statistics (like correlation coefficients) to advanced multi-step algorithms (like Granger causality).
77

@@ -16,6 +16,8 @@ Contents
1616

1717
.. toctree::
1818

19+
installation
1920
usage
2021
advanced
21-
api
22+
api
23+
faq

docs/source/installation.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Installation
2+
===================================
3+
4+
Pre-installation
5+
----------------
6+
7+
The code requires GNU's `Octave <https://www.gnu.org/software/octave/index>`_ by default, which is freely available on all popular operating systems.
8+
See the `installation instructions <https://wiki.octave.org/Category:Installation>`_ to find out how to install Octave on your system.
9+
10+
.. note::
11+
You can safely install `pyspi` without first installing Octave but you will not have access to the `Integrated Information Theory` statistics, see :ref:`Using the toolkit without Octave`.
12+
13+
While you can also install `pyspi` outside of a `conda <https://docs.conda.io/projects/conda/en/latest/index.html>`_ environment, it depends on a lot of user packages that may make managing dependencies quite difficult.
14+
So, we would also recommend installing `pyspi` in a conda environment.
15+
After `installing conda <https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html>`_, create a new environment for using the toolkit:
16+
17+
.. code-block:: console
18+
19+
$ conda create -n pyspi python=3.9.0
20+
$ conda activate pyspi
21+
22+
23+
Installation
24+
------------
25+
26+
Next, download or clone the `latest version <https://github.com/olivercliff/pyspi>`_ from GitHub, unpack and install:
27+
28+
.. code-block:: console
29+
30+
$ git clone https://github.com/olivercliff/pyspi.git
31+
$ cd pyspi
32+
$ pip install .
33+
34+
You can confirm that `pyspi` and dependencies installed properly with the following command:
35+
36+
.. code-block:: console
37+
38+
$ setup.py test

docs/source/usage.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,6 @@
11
Usage
22
=====
33

4-
Pre-installation
5-
----------------
6-
7-
The code requires GNU's `Octave <https://www.gnu.org/software/octave/index>`_ by default, which is freely available on all popular operating systems.
8-
See the `installation instructions <https://wiki.octave.org/Category:Installation>`_ to find out how to install Octave on your system.
9-
10-
.. note::
11-
You can safely install `PySPI` without first installing Octave but you will not have access to the `Integrated Information Theory` statistics, see :ref:`Using the toolkit without Octave`.
12-
13-
While you can also install `PySPI` outside of a `conda <https://docs.conda.io/projects/conda/en/latest/index.html>`_ environment, it depends on a lot of user packages that may make managing dependencies quite difficult.
14-
So, we would also recommend installing `PySPI` in a conda environment.
15-
After `installing conda <https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html>`_, create a new environment for using the toolkit:
16-
17-
.. code-block:: console
18-
19-
$ conda create -n pyspi python=3.9.0
20-
$ conda activate pyspi
21-
22-
23-
Installation
24-
------------
25-
26-
Next, download or clone the `latest version <https://github.com/olivercliff/pyspi>`_ from GitHub, unpack and install:
27-
28-
.. code-block:: console
29-
30-
$ git clone https://github.com/olivercliff/pyspi.git
31-
$ cd pyspi
32-
$ pip install .
33-
344

355
Getting Started
366
---------------

0 commit comments

Comments
 (0)