Skip to content

Commit 8712a21

Browse files
authored
Develop (#27)
* updated setup for dev install * return class data * close HS port
1 parent 3605915 commit 8712a21

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__pycache__/
22
manuals
3+
error_device_logs
34
build/
45
dist/
56
.update_package.sh.swp

sciopy/EIT_16_32_64_128.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ def connect_device_FS(self, port: str, baudrate: int = 9600, timeout: int = 1):
9797

9898
print("Connection to", self.device.name, "is established.")
9999

100+
def disconnect_device(self):
101+
"""
102+
Disconnect serial device
103+
"""
104+
self.device.close()
105+
100106
def SystemMessageCallback_usb_fs(self):
101107
"""
102108
!Only used if a full-speed connection is established!
@@ -393,7 +399,7 @@ def StartStopMeasurement(self, return_as="pot_mat"):
393399
self.data = data
394400

395401
if return_as == "hex":
396-
return data
402+
return self.data
397403
elif return_as == "pot_mat":
398404
return self.get_data_as_matrix()
399405

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import setuptools
1+
from setuptools import setup, find_packages
22

3-
setuptools.setup(
3+
setup(
44
name="sciopy",
5-
version="0.8.0",
5+
version="0.8.2",
6+
packages=find_packages(),
67
author="Jacob Peter Thönes",
78
author_email="jacob.thoenes@uni-rostock.de",
89
description="Python based interface module for communication with the Sciospec Electrical Impedance Tomography (EIT) device.",

0 commit comments

Comments
 (0)