mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
Tidied up examples for Octave and Matlab
This commit is contained in:
@@ -423,7 +423,7 @@ class Octave(BaseParser):
|
||||
|
||||
def dict2string(self, d):
|
||||
if d['type'] == 'comment':
|
||||
l = '# ' + d['comment']
|
||||
l = '% ' + d['comment']
|
||||
elif d['type'] == 'function':
|
||||
l = self.map_function(d['function']) + '(' + ', '.join(self.parse_arguments(d['arguments'])) + ')'
|
||||
elif d['type'] == 'print':
|
||||
@@ -490,7 +490,7 @@ class MATLAB(BaseParser):
|
||||
|
||||
def dict2string(self, d):
|
||||
if d['type'] == 'comment':
|
||||
l = '# ' + d['comment']
|
||||
l = '% ' + d['comment']
|
||||
elif d['type'] == 'function':
|
||||
l = self.map_function(d['function']) + '(' + ', '.join(self.parse_arguments(d['arguments'])) + ')'
|
||||
elif d['type'] == 'print':
|
||||
|
||||
Reference in New Issue
Block a user