Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Jan 13, 2025
1 parent 197af3a commit 9b74b09
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
python-version: '3.11'

- name: Install dependencies
run: pip install -r requirements_lint.txt >/dev/null
run: pip install -r requirements_test.txt >/dev/null

- name: Set up Go
uses: actions/setup-go@v5
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ You first need to install Go to compile the C-library: [Golang download/install]

Compile: `go build -buildmode=c-shared -o noise.so noise.go`

Test it: `python3 example.py`
Test it: `python3 examples/minimal.py`

For more information see: [Examples](https://github.com/O-X-L/python-opensimplex/blob/latest/examples)

## Credits

Expand Down
3 changes: 0 additions & 3 deletions example.py

This file was deleted.

9 changes: 9 additions & 0 deletions examples/minimal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from pathlib import Path
from sys import path as sys_path

BASE_PATH = Path(__file__).parent.parent.resolve()
sys_path.append(str(BASE_PATH))

from opensimplex import OpenSimplex

print('2D Noise Sample:', OpenSimplex().get_2d(20, 40))

0 comments on commit 9b74b09

Please sign in to comment.