Skip to content

Commit

Permalink
Merge pull request SDXorg#162 from alexprey/master
Browse files Browse the repository at this point in the history
Small fixes for XMILE parser
Thanks @alexprey!
  • Loading branch information
JamesPHoughton authored Oct 13, 2017
2 parents b1d29d6 + 3d331fb commit d95fecc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pysd/py_backend/xmile/SMILE2Py.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"delayn": lambda element, subscript_dict, args: builder.add_n_delay(
delay_input = args[0],
delay_time = args[1],
input_value = args[2] if len(args) > 3 else args[0],
initial_value = args[2] if len(args) > 3 else args[0],
order = args[2],
subs = element['subs'],
subscript_dict = subscript_dict
Expand Down Expand Up @@ -161,12 +161,14 @@
),

# "forcst" !TODO!

"trend": lambda element, subscript_dict, args: builder.add_n_trend(
trend_input=args[0],
average_time=args[1],
initial_trend=args[2],
subs=element['subs'],
subscript_dict=subscript_dict),
trend_input = args[0],
average_time = args[1],
initial_trend = args[2] if len(args) > 2 else 0,
subs = element['subs'],
subscript_dict = subscript_dict
),

"init": lambda element, subscript_dict, args: builder.add_initial(args[0]),
}
Expand Down

0 comments on commit d95fecc

Please sign in to comment.