Skip to content

Commit

Permalink
Refactor code and add docs
Browse files Browse the repository at this point in the history
Refactored the code inside the brian2units and also made
the setup for sphinx and readthedocs.

Signed-off-by: Sorin Birchi <sb.birchi.sorin@gmail.com>
Sorin Birchi committed Jun 8, 2024
1 parent 85ed782 commit 619f80c
Showing 98 changed files with 21,132 additions and 7,734 deletions.
21 changes: 21 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-latest
tools:
python: "3.x"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs_sphinx/conf.py

post_install:
- python -m pip install .
- python -m pip install -r rtd-requirements.txt

2 changes: 0 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""
brian2units
"""

from brian2units.units.unitsafefunctions import arange, linspace
8 changes: 0 additions & 8 deletions codegen/targets.py

This file was deleted.

3 changes: 0 additions & 3 deletions core/__init__.py

This file was deleted.

Loading

0 comments on commit 619f80c

Please sign in to comment.