Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanElsner committed Feb 9, 2024
1 parent c82f234 commit 180aad1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
VERSION: 0.7.2
VERSION: 0.7.3

permissions: write-all

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'panda-py'
copyright = '2023, Jean Elsner'
author = 'Jean Elsner'
release = '0.7.2'
release = '0.7.3'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "panda-python"
version = "0.7.2"
version = "0.7.3"
description = "Python bindings for the Panda robot"
requires-python = ">=3.7"
dependencies = ["websockets>=11.0", "requests", "numpy"]
Expand Down
16 changes: 10 additions & 6 deletions src/panda_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'fk', 'ik', 'ik_full', 'Desk', 'TOKEN_PATH'
]

__version__ = '0.7.2'
__version__ = '0.7.3'

_logger = logging.getLogger('desk')

Expand Down Expand Up @@ -76,7 +76,11 @@ class Desk:
robot's Pilot interface.
"""

def __init__(self, hostname: str, username: str, password: str, platform: str = 'panda') -> None:
def __init__(self,
hostname: str,
username: str,
password: str,
platform: str = 'panda') -> None:
urllib3.disable_warnings()
self._session = requests.Session()
self._session.verify = False
Expand All @@ -90,7 +94,9 @@ def __init__(self, hostname: str, username: str, password: str, platform: str =
self.login()
self._legacy = False

if platform.lower() in ['panda', 'fer', 'franka_emika_robot', 'frankaemikarobot']:
if platform.lower() in [
'panda', 'fer', 'franka_emika_robot', 'frankaemikarobot'
]:
self._platform = 'panda'
elif platform.lower() in ['fr3', 'frankaresearch3', 'franka_research_3']:
self._platform = 'fr3'
Expand All @@ -115,9 +121,7 @@ def lock(self, force: bool = True) -> None:
elif self._platform == 'fr3':
url = '/desk/api/joints/lock'

self._request('post',
url,
files={'force': force})
self._request('post', url, files={'force': force})

def unlock(self, force: bool = True) -> None:
"""
Expand Down

0 comments on commit 180aad1

Please sign in to comment.