“Matlab à Python” Réponses codées

Matlab à 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

Comment convertir les scripts matlab en python

matlab code  to python 
Wide-eyed Willet

Matlab à 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

Réponses similaires à “Matlab à Python”

Questions similaires à “Matlab à Python”

Plus de réponses similaires à “Matlab à Python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code