Skip to content

Commit 960a14f

Browse files
committed
Misc updates.
1 parent b6ee455 commit 960a14f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

pyxdm/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
from .core import XDMSession
1212
from .partitioning import PartitioningSchemeFactory
13-
from .utils.formatting import (get_atomic_symbol, log_boxed_title,
14-
log_charges_populations, log_mol_info,
15-
log_table)
13+
from .utils.formatting import get_atomic_symbol, log_boxed_title, log_charges_populations, log_mol_info, log_table
1614
from .utils.io import write_h5_output
1715

1816
logger = logging.getLogger(__name__)

pyxdm/utils/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def dump_to_h5(grp: str, data: Any) -> None:
3636
# Simply overwrite old data
3737
if key in grp:
3838
del grp[key]
39-
if isinstance(value, int) or isinstance(value, float) or isinstance(value, np.ndarray) or isinstance(value, str):
39+
if isinstance(value, (int, float, str, np.ndarray, list)):
4040
grp[key] = value
4141
else:
4242
subgrp = grp.require_group(key)

0 commit comments

Comments
 (0)