Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ scratch/
.coverage
.pytest_cache/
htmlcov/

# build artifacts
*.egg-info/
dist/
2 changes: 1 addition & 1 deletion examples/select_motor_from_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
print(f" Min Hover Power : {opt_power:.2f} W")

# 3. Load motor database and find catalog candidates near the optimum.
motors_db_path = Path(__file__).resolve().parent.parent / "data" / "motors"
motors_db_path = Path(__file__).resolve().parent.parent / "pythrust" / "data" / "motors"
db_motors = MotorDatabase()
if not db_motors.load(motors_db_path):
print(f"\nError: Motor database not found at {motors_db_path}")
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ version = {attr = "pythrust.__version__"}
[tool.setuptools.packages.find]
where = ["."]
include = ["pythrust*"]

[tool.setuptools.package-data]
pythrust = ["data/**/*.json"]
9 changes: 8 additions & 1 deletion pythrust/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
"""PyThrust package."""

__version__ = "0.2.0"
from pathlib import Path

__version__ = "0.2.1"


def dataset_dir() -> Path:
"""Return the bundled motor/propeller/battery dataset directory."""
return Path(__file__).resolve().parent / "data"

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading