File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
1
from mpython import (
2
- Runtime ,
3
2
MatlabClass ,
4
3
MatlabFunction ,
5
4
Cell ,
6
5
Struct ,
7
6
Array ,
8
7
SparseArray ,
9
8
)
9
+ from ._runtime import Runtime
10
10
from ._version import __version__
11
11
from .file_array import file_array
12
12
from .gifti import gifti
Original file line number Diff line number Diff line change
1
+ from mpython .runtime import Runtime as RuntimeBase
2
+
3
+
4
+ class Runtime (RuntimeBase ):
5
+ """
6
+ Runtime specialization that imports the correct CTF.
7
+ """
8
+
9
+ @classmethod
10
+ def _import_runtime (cls ):
11
+ import spm_runtime
12
+ return spm_runtime
13
+
14
+
15
+ class RuntimeMixin :
16
+ """
17
+ Mixin that SPM classes must inherit so that they can call the
18
+ correct runtime.
19
+ """
20
+
21
+ @classmethod
22
+ def _runtime (cls ):
23
+ return Runtime
You can’t perform that action at this time.
0 commit comments