-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from renegelinas/rm11419
Issue #11419 - Added driver/parser/support for the new Neil Brown CTD…
- Loading branch information
Showing
27 changed files
with
491,229 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ dependencies: | |
- vine | ||
- pip: | ||
- modestimage==0.1 | ||
- Deprecated==1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,3 @@ def _build_parser(self, stream_handle): | |
is_telemetered=False) | ||
|
||
return parser | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,3 @@ def _build_parser(self, stream_handle): | |
is_telemetered=True) | ||
|
||
return parser | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
@package mi.dataset.driver.ctdav_n.auv | ||
@file mi/dataset/driver/ctdav_n/auv/ctdav_n_auv_driver.py | ||
@author Rene Gelinas | ||
@brief Driver for the ctdav_n_auv instrument | ||
Release notes: | ||
Initial Release | ||
""" | ||
|
||
from mi.dataset.dataset_driver import SimpleDatasetDriver | ||
from mi.dataset.parser.ctdav_n_auv import CtdavNAuvParser | ||
from mi.core.versioning import version | ||
|
||
|
||
@version("15.7.0") | ||
def parse(unused, source_file_path, particle_data_handler): | ||
""" | ||
This is the method called by uFrame | ||
:param unused | ||
:param source_file_path This is the full path and filename of the file to be parsed | ||
:param particle_data_handler Java Object to consume the output of the parser | ||
:return particle_data_handler | ||
""" | ||
|
||
with open(source_file_path, 'rU') as stream_handle: | ||
|
||
# Create an instance of the concrete driver class defined below. | ||
driver = CtdavNAuvDriver(unused, stream_handle, particle_data_handler) | ||
driver.processFileStream() | ||
|
||
return particle_data_handler | ||
|
||
|
||
class CtdavNAuvDriver(SimpleDatasetDriver): | ||
""" | ||
Create a concrete _build_parser method for the adcpa_n_auv driver. | ||
""" | ||
|
||
def _build_parser(self, stream_handle): | ||
|
||
parser = CtdavNAuvParser(stream_handle, | ||
self._exception_callback) | ||
|
||
return parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import os | ||
|
||
RESOURCE_PATH = os.path.dirname(__file__) | ||
RESOURCE_PATH = os.path.dirname(__file__) |
Oops, something went wrong.