-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nodedge/feature/add-blocks
Add numpy blocks
- Loading branch information
Showing
92 changed files
with
3,017 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: nodedge # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Python test | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.platform }} | ||
strategy: | ||
matrix: | ||
# platform: [ubuntu-latest, macos-latest, windows-latest] | ||
platform: [ubuntu-latest] | ||
python-version: [3.8, 3.9, '3.10'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
os: ${{ matrix.platform }} | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
- name: Install linux dependencies | ||
run: | | ||
if [ "${{ matrix.platform }}" == "ubuntu-latest" ]; then | ||
sudo apt-get update | ||
sudo apt-get install -y libxml2-utils x11-utils xvfb herbstluftwm | ||
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libegl1 | ||
sudo apt-get install -y libxcb-image0 libxcb-keysyms1 libxcb-randr0 x11-utils | ||
sudo apt-get install -y libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 | ||
fi | ||
shell: bash | ||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install setuptools_rust tox tox-gh-actions | ||
- name: Tests with tox | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
run: tox | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
# PLATFORM: ${{ matrix.platform }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from pylab import * | ||
from scipy.integrate import odeint | ||
|
||
|
||
""" | ||
A spring-mass system with damping | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .operator import * | ||
from .numpy import * | ||
from .operator import * # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from .absolute_block import * | ||
from .add_block import * | ||
from .arccos_block import * | ||
from .arccosh_block import * | ||
from .arcsin_block import * | ||
from .arcsinh_block import * | ||
from .arctan2_block import * | ||
from .arctan_block import * | ||
from .arctanh_block import * | ||
from .around_block import * | ||
from .ceil_block import * | ||
from .cos_block import * | ||
from .cosh_block import * | ||
from .deg2rad_block import * | ||
from .equal_block import * | ||
from .exp_block import * | ||
from .floor_divide_block import * | ||
from .greater_block import * | ||
from .greater_equal_block import * | ||
from .hypot_block import * | ||
from .isclose_block import * | ||
from .less_block import * | ||
from .less_equal_block import * | ||
from .log2_block import * | ||
from .log10_block import * | ||
from .log_block import * | ||
from .maximum_block import * | ||
from .minimum_block import * | ||
from .mod_block import * | ||
from .multiply_block import * | ||
from .negative_block import * | ||
from .not_equal_block import * | ||
from .positive_block import * | ||
from .power_block import * | ||
from .rad2deg_block import * | ||
from .reciprocal_block import * | ||
from .rint_block import * | ||
from .sign_block import * | ||
from .sin_block import * | ||
from .sinh_block import * | ||
from .sqrt_block import * | ||
from .square_block import * | ||
from .subtract_block import * | ||
from .tan_block import * | ||
from .tanh_block import * | ||
from .true_divide_block import * | ||
from .trunc_block import * |
Oops, something went wrong.