Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Nov 1, 2024
1 parent 17da910 commit d8c2a9f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions h5pyd/_hl/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _make_group(self, parent_id=None, parent_name=None, link=None):
body["link"] = link_json
self.log.debug(f"create group with body: {body}")
rsp = self.POST('/groups', body=body)

group_json = rsp
groupId = GroupID(self, group_json)
sub_group = Group(groupId)
Expand All @@ -208,9 +208,8 @@ def _make_group(self, parent_id=None, parent_name=None, link=None):
parent_name = parent_name + '/' + link
self.log.debug(f"create group - parent name: {parent_name}")
sub_group._name = parent_name

return sub_group

return sub_group

def create_group(self, h5path, track_order=False):
""" Create and return a new subgroup.
Expand All @@ -227,7 +226,7 @@ def create_group(self, h5path, track_order=False):
sub_group = self._make_group()
sub_group._track_order = track_order
return sub_group

if h5path[-1] == '/':
raise ValueError("Invalid path for create_group")
elif h5path[0] == '/':
Expand Down Expand Up @@ -259,7 +258,7 @@ def create_group(self, h5path, track_order=False):
sub_group = self._make_group(parent_id=parent_uuid, parent_name=parent_name, link=link)
sub_group._track_order = track_order
parent_uuid = sub_group.id.id

else:
# sub-group already exsits
self.log.debug(f"create group - found subgroup: {link}")
Expand Down

0 comments on commit d8c2a9f

Please sign in to comment.