Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
3 changes: 3 additions & 0 deletions tmd/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def load_population(neurons, tree_types=None, name=None):

pop = Population.Population(name=name)

if any([i.endswith(".asc") for i in files]):
Comment thread
arnaudon marked this conversation as resolved.
Outdated
raise Exception('You have some .asc files which cannot be used with TMD, please only use .h5 or .swc.')
Comment thread
arnaudon marked this conversation as resolved.
Outdated

files2load = [i for i in files if (i.endswith(".h5") or i.endswith(".swc"))]

for i in files2load:
Expand Down