Skip to content

Commit

Permalink
Fix bug in find plotable plot.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Dec 6, 2024
1 parent 9f77e1d commit 800cd30
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pynxtools/nexus/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,10 @@ def get_default_plotable(root, logger):
nxgroup = nxgroup[default_group_name]
default_group_name = decode_if_string(nxgroup.attrs.get("default"))
except KeyError:
pass
logger.debug(f"""No default group with a name
{default_group_name} for {nxgroup} has been found.""")
break

if nxgroup == nxentry:
nxdata = nxdata_helper(nxentry)
else:
Expand Down Expand Up @@ -833,7 +836,7 @@ def process_nexus_master_file(self, parser):

self.full_visit(self.in_file, self.in_file, "", self.visit_node)

if self.d_inq_nd is None and self.c_inq_nd is None:
if self.d_inq_nd is None and self.c_inq_nd is None and parser is None:
get_default_plotable(self.in_file, self.logger)
# To log the provided concept and concepts founded
if self.c_inq_nd is not None:
Expand Down

0 comments on commit 800cd30

Please sign in to comment.