“Matlab a Python” Código de respuesta

Matlab a Python

Install SMOP:

$ git clone https://github.com/victorlei/smop
$ cd smop
$ python setup.py install --user

then run:
$ smop file.m
this will convert file.m in file.py
MitchAloha

Cómo convertir los scripts de Matlab a Python

matlab code  to python 
Wide-eyed Willet

Matlab a Python

'''
Hi I did this but I have found the following error 
can someone guide me to how to solve it 
'''
(kinetics) PS E:\code\Cantera\conversion\input> smop poly_cp.m
C:\Users\fahad\anaconda3\envs\kinetics\lib\site-packages\ply\lex.py:760: FutureWarning: Possible nested set at position 65
  c = re.compile('(?P<%s>%s)' % (fname, _get_regex(f)), self.reflags)
C:\Users\fahad\anaconda3\envs\kinetics\lib\site-packages\ply\lex.py:498: FutureWarning: Possible nested set at position 118
  lexre = re.compile(regex, reflags)
str
Traceback (most recent call last):
  File "C:\Users\fahad\anaconda3\envs\kinetics\lib\site-packages\smop\main.py", line 66, in main
    G = resolve.resolve(stmt_list)
  File "C:\Users\fahad\anaconda3\envs\kinetics\lib\site-packages\smop\resolve.py", line 54, in resolve
    u = G.node[n]["ident"]
AttributeError: 'DiGraph' object has no attribute 'node'
Errors: 1
Victorious Vendace

Respuestas similares a “Matlab a Python”

Preguntas similares a “Matlab a Python”

Más respuestas relacionadas con “Matlab a Python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código