Skip to content

Commit

Permalink
Merge pull request #26 from SF-Tec/doc/update-readme-files
Browse files Browse the repository at this point in the history
  • Loading branch information
raulmarindev authored Dec 12, 2022
2 parents 827082e + e2c1e23 commit d8deb23
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@ Core.IV_getdevicestatus()
Core.IV_close()
```

<!-- ## Usage Example (Using Pyvium methods)
## Usage Example (Using Pyvium methods)

This is a wrapper around the Core functions that adds a few things:
- Exception management
- Exception management (you can find an example [here](./docs/error_management.md))
- New functionalities

```
from pyvium import Pyvium
app = Pyvium()
Pyvium.open_driver()
Pyvium.get_device_status()
Pyvium.close_driver()
app.connect_device()
``` -->
```


## Supported functions
Expand Down
24 changes: 24 additions & 0 deletions docs/error_management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

```
form pyvium import Pyvium
from pyvium.errors import DeviceNotConnectedToIviumSoftError, IviumSoftNotRunningError
try:
Pyvium.open_driver()
Pyvium.get_potential()
except IviumSoftNotRunningError:
print('Tell the user the software is not running')
except DeviceNotConnectedToIviumSoftError:
raise
```


| Available errors |
| ------------------------------------- |
| DeviceBusyError |
| DeviceNotConnectedToIviumSoftError |
| DriverNotOpenError |
| NoDeviceDetectedError |
| IviumSoftNotRunningError |
| CellOffError |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"
name = "pyvium"
packages = [{include = "pyvium"}]
readme = "README.md"
version = "0.1.1a5"
version = "0.1.1a6"
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
Expand Down

0 comments on commit d8deb23

Please sign in to comment.