Skip to content
Snippets Groups Projects

NXtomo: downgrqde some 'info' log to debug.

Merged payno requested to merge update_logs into 1.3
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -768,12 +768,12 @@ class NXtomo(NXobject):
def node_is_nxtomo(node: h5py.Group) -> bool:
"""check if the given h5py node is an nxtomo node or not"""
if "NX_class" in node.attrs or "NXclass" in node.attrs:
_logger.info(f"{node.name} is recognized as a nx class.")
_logger.debug(f"{node.name} is recognized as a nx class.")
else:
_logger.info(f"{node.name} isn't recognized as a nx class.")
_logger.debug(f"{node.name} isn't recognized as a nx class.")
return False
if "definition" in node.attrs and node.attrs["definition"].lower() == "nxtomo":
_logger.info(f"{node.name} is recognized as an NXtomo class.")
_logger.debug(f"{node.name} is recognized as an NXtomo class.")
return True
elif (
"instrument" in node
Loading