Skip to content

Commit

Permalink
bug fix to extend profiles in case of asvp format
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Mar 15, 2024
1 parent eff440b commit 4108768
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hyo2/ssm2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger.addHandler(logging.NullHandler())

name = "Sound Speed"
__version__ = '2024.0.1'
__version__ = '2024.0.2'
__copyright__ = 'Copyright 2024 University of New Hampshire, Center for Coastal and Ocean Mapping'

pkg_info = PkgInfo(
Expand Down
2 changes: 1 addition & 1 deletion hyo2/ssm2/lib/formats/writers/asvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def write(self, ssp, data_path, data_file=None, project=''):
self._write_body()
self.finalize()

# this part write the absorption files only if the temp and the sal are present
ti = self.ssp.cur.sis_thinned
# this part write the absorption files only if the temp and the sal are present
if (np.sum(self.ssp.cur.sis.temp[ti]) != 0) and (np.sum(self.ssp.cur.sis.sal[ti]) != 0) \
and (np.sum(self.ssp.cur.sis.speed[ti]) != 0):

Expand Down
4 changes: 2 additions & 2 deletions hyo2/ssm2/lib/soundspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,8 @@ def export_data(self, data_formats: list, data_paths: Optional[dict],
idx = self.name_writers.index(name)
writer = self.writers[idx]

# special case for Kongsberg asvp format
if name == 'asvp':
# special case for Kongsberg asvp/ssp format
if name == 'asvp/ssp':

tolerances = [0.01, 0.03, 0.06, 0.1, 0.5]
for tolerance in tolerances:
Expand Down

0 comments on commit 4108768

Please sign in to comment.