GitLab 14.5 is now available. 🚀 Learn what's new.

Commit c3b988f0 authored by Timm Schoening's avatar Timm Schoening
Browse files

using new exception

parents 34a64d24 01f6f863
from osisunderwayconnector import OsisUnderwayConnector
from osisunderwayconnector import OsisUnderwayConnector, OsisUnderwayConnectorError
import mariqt.geo as miqtg
import mariqt.files as miqtf
......@@ -66,17 +66,23 @@ class MarIQTConnector(OsisUnderwayConnector):
self.stream = stream
self.positions = []
@property
def datastream(self):
return self.stream
@property
def contact_person(self):
return self.contact
def get_positions(self):
return self.positions
def set_positions(self, positions:miqtg.Positions, payloads:list = []):
if len(payloads) > 0 and len(payloads) != positions.len():
raise Exception("Positions and payload lengths do not match!")
raise OsisUnderwayConnectorError("Positions and payload lengths do not match!")
else:
use_payload = True
self.positions = []
......
......@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='mariqt',
version='0.2.6',
version='0.2.7',
description='The MareHub & Marine Imaging Community Image QA/QC and curation toolbox',
author='Timm Schoening',
author_email='tschoening@geomar.de',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment