# Path: sfc_models/base_solver.py
# class BaseSolver(object):
#     def __init__(self, variable_list):
#         self.VariableList = variable_list
# 
#     def WriteCSV(self, f_name):  # pragma: no cover
#         out = self.CreateCsvString()
#         with open(f_name, 'w') as f:
#             f.write(out)
# 
#     def CreateCsvString(self):
#         varlist = self.VariableList
#         if 't' in varlist:
#             varlist.remove('t')
#             varlist = ['t', ] + varlist
#         out = '\t'.join(varlist) + '\n'
#         for i in range(0, len(getattr(self, varlist[0]))):
#             txt = []
#             for v in varlist:
#                 txt.append(str(getattr(self, v)[i]))
#             out += '\t'.join(txt) + '\n'
#         return out


from pprint import pprint
from math import *
from sfc_models.base_solver import BaseSolver

"""
output\unittest_output_2.py

Machine-generated model code

[Generated by:]

# Test system used in unit tests.
x = y
LAG_x = x(t-1)
y = t + 2.0
z = LAG_x + 1.0
oops
# Exogenous
G = [20., ] * 20
        
====================

Warnings generated by this code:
Ignored line: "oops"

"""

# Bring in all the math functions by default.




# Path: sfc_models/base_solver.py
# class BaseSolver(object):
#     def __init__(self, variable_list):
#         self.VariableList = variable_list
# 
#     def WriteCSV(self, f_name):  # pragma: no cover
#         out = self.CreateCsvString()
#         with open(f_name, 'w') as f:
#             f.write(out)
# 
#     def CreateCsvString(self):
#         varlist = self.VariableList
#         if 't' in varlist:
#             varlist.remove('t')
#             varlist = ['t', ] + varlist
#         out = '\t'.join(varlist) + '\n'
#         for i in range(0, len(getattr(self, varlist[0]))):
#             txt = []
#             for v in varlist:
#                 txt.append(str(getattr(self, v)[i]))
#             out += '\t'.join(txt) + '\n'
#         return out


# Path: test/output/unittest_target_2.py
from pprint import pprint
from math import *
from sfc_models.base_solver import BaseSolver


"""
output\unittest_output_2.py

Machine-generated model code

[Generated by:]

# Test system used in unit tests.
x = y
LAG_x = x(t-1)
y = t + 2.0
z = LAG_x + 1.0
oops
# Exogenous
G = [20., ] * 20
        
====================

Warnings generated by this code:
Ignored line: "oops"

"""

# Bring in all the math functions by default.




class SFCModel(BaseSolver):