Compare commits
2 Commits
5f56e95d31
...
1b46b2d188
| Author | SHA1 | Date |
|---|---|---|
|
|
1b46b2d188 | |
|
|
fe004f2b38 |
|
|
@ -333,9 +333,9 @@ class Trajectories:
|
||||||
return self._slice(slice_part=sl[0],slice_time=sl[1])
|
return self._slice(slice_part=sl[0],slice_time=sl[1])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_mat(cls,file,unraveled=False,select_col=None):
|
def from_mat(cls,file,unraveled=False,select_col=None,varpp='pp'):
|
||||||
from .helper import load_mat
|
from .helper import load_mat
|
||||||
pp = load_mat(file,'pp',cast_integer=False) # int casting is expensive and useless on potentially large array
|
pp = load_mat(file,varpp,cast_integer=False) # int casting is expensive and useless on potentially large array
|
||||||
col,time,ccinfo = load_mat(file,['colpy','time','ccinfo'],cast_integer=True)
|
col,time,ccinfo = load_mat(file,['colpy','time','ccinfo'],cast_integer=True)
|
||||||
period = [None,None,None]
|
period = [None,None,None]
|
||||||
if bool(ccinfo['xperiodic']): period[0]=ccinfo['b']
|
if bool(ccinfo['xperiodic']): period[0]=ccinfo['b']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue