error msg for join
@@ -543,8 +543,13 @@ def _join(files):
join_info = {"Generated by": "Picasso Join", "Files": [files[0]]}
for path in files[1:]:
locs_, info_ = load_locs(path)
+ try:
locs = append(locs, locs_)
join_info["Files"].append(path)
+ except TypeError:
+ print("An error occured.\n"
+ "Unable to join files."
+ " Make sure they have the same columns.")
base, ext = splitext(files[0])
info.append(join_info)
locs.sort(kind="mergesort", order="frame")
