Commit c5ee7525 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

read_cl

parent 271efe37
......@@ -175,7 +175,10 @@ def read_cl (file):
cl, array-like.
"""
if __piolib(file):
cl = pio.ReadVECTObject(file, "PIODOUBLE", "")
try:
cl = pio.ReadVECTObject(file, "PIODOUBLE", "")
except:
cl = pio.ReadCLObject(file, "PIODOUBLE", "")
else:
cl = sp.read_cl(file)
return np.squeeze(cl)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment