Skip to content

Commit

Permalink
fixed imports to also work in package
Browse files Browse the repository at this point in the history
  • Loading branch information
tueboesen committed Mar 16, 2023
1 parent 0766f80 commit be486f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion multibodypendulum/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
from npendul import MultiBodyPendulum
from .npendul import MultiBodyPendulum

__version__ = "0.2"

__all__ = [
"MultiBodyPendulum",
"__version__",
]
Empty file removed tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_npendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
import torch

from multibodypendulum.npendul import MultiBodyPendulum
from multibodypendulum import MultiBodyPendulum


def test_stability():
Expand Down

0 comments on commit be486f6

Please sign in to comment.