Skip to content

Commit

Permalink
Merge pull request #8 from SASlabgroup/fix_frequency_array_length
Browse files Browse the repository at this point in the history
Fix frequency array length
  • Loading branch information
jacobrdavis authored Jun 18, 2024
2 parents c87788e + f3067d9 commit 9bee1a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions microSWIFTtelemetry/sbd/read_sbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def unpack_sensor_type_52(data):
fmin = data[49]
fmax = data[50]
if fmin != 999 and fmax != 999:
fstep = (fmax - fmin)/(len(swift['energy_density'])-1)
swift['frequency'] = np.arange(fmin, fmax + fstep, fstep)
fnum = len(swift['energy_density'])
swift['frequency'] = np.linspace(fmin, fmax, fnum)
else:
swift['frequency'] = 999*np.ones(np.shape(swift['energy_density']))
swift['a1'] = np.asarray(data[51:93])/100
Expand Down
2 changes: 1 addition & 1 deletion microSWIFTtelemetry/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 3
_version_micro = 3 # use '' for first of series, number for 1 and above
_version_micro = 4 # use '' for first of series, number for 1 and above
# _version_extra = 'dev'
_version_extra = '' # TODO: Uncomment this for full releases

Expand Down

0 comments on commit 9bee1a7

Please sign in to comment.