Skip to content

Commit

Permalink
Fix Py3 error properly this time
Browse files Browse the repository at this point in the history
  • Loading branch information
philbull committed Mar 26, 2019
1 parent ac45fef commit ae0307e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hera_pspec/uvpspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,8 +1142,7 @@ def read_from_group(self, grp, just_meta=False, spws=None, bls=None,
assert 'pspec_type' in grp.attrs, "This object is not a UVPSpec object"
pstype = grp.attrs['pspec_type']
pstype = pstype.decode() if isinstance(pstype, bytes) else pstype
assert grp.attrs['pspec_type'].decode() == 'UVPSpec', \
"This object is not a UVPSpec object"
assert pstype == 'UVPSpec', "This object is not a UVPSpec object"

# Clear all data in the current object
self._clear()
Expand Down

0 comments on commit ae0307e

Please sign in to comment.