Skip to content

Commit

Permalink
remove unneeded commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 13, 2024
1 parent 2c86c6c commit 39f241c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/pynxtools/nexus/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ def decode_if_string(

return decode_or_not(elem, encoding, decode)

# # Handle lists of bytes or strings
# elif isinstance(elem, list):
# if not elem:
# return elem # Return an empty list unchanged

# decoded_list = [decode_if_string(x, encoding, decode) for x in elem]
# return decoded_list

# # Handle byte strings
# elif isinstance(elem, bytes):
# try:
# return elem.decode(encoding)
# except UnicodeDecodeError as e:
# raise ValueError(f"Error decoding bytes: {e}")

# # For other types, just return the input value unchanged
# return elem


def get_nxdl_entry(hdf_info):
"""Get the nxdl application definition for an HDF5 node"""
Expand Down

0 comments on commit 39f241c

Please sign in to comment.