Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mhkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

configure_warnings()

__version__ = "v1.1.0"
__version__ = "v1.1.1"

__copyright__ = """
Copyright 2019, Alliance for Energy Innovation, LLC under the terms of
Expand Down
7 changes: 4 additions & 3 deletions mhkit/dolfyn/io/nortek.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,11 +925,12 @@ def read_profile(self, skip_bytes=0):
"""Reads AWAC or Aquadopp profile data"""
dat = self.data
nbins = self.config["usr"]["n_bins"]
n = self.config["usr"]["n_beams"]
init_bytes = 28 + skip_bytes
# Note: docs state there is 'fill' byte at the end, if nbins is odd,
# but doesn't appear to be the case
n = self.config["usr"]["n_beams"]
byts = self.read(init_bytes + n * 3 * nbins)
# but doesn't appear to always be the case
fill_byte = 1 if (nbins % 2) else 0
byts = self.read(init_bytes + n * 3 * nbins + fill_byte)
c = self.c
dat["coords"]["time"][c] = lib.rd_time(byts[2:8])
ds = dat["sys"]
Expand Down