Functions | |
def | gdxdump2 () |
def | gdxdump1 () |
def | get_data_text () |
def | same_gdx_dump (ws, gdxfile, expected_result) |
def | my_assert (test, msg) |
def | check_alias_logic (prefix, alias_db) |
Variables | |
ws = GamsWorkspace(system_directory = sys.argv[1]) | |
j1 = ws.add_job_from_string(get_data_text()) | |
db = ws.add_database(source_database= j1.out_db) | |
db2 = ws.add_database() | |
ii = db2.add_set_dc(db["ii"].name, ["*"], db["ii"].text) | |
aa_orig = db["aa"] | |
aa = db2.add_parameter_dc(db["aa"].name, [ii], db["aa"].text, ) | |
Function Documentation
◆ check_alias_logic()
def alias.check_alias_logic | ( | prefix, | |
alias_db | |||
) |
Definition at line 107 of file alias.py.
114 my_assert(cnt_symbols == 5, prefix + "'for sym in alias_db' should result in 5 symbols: i,j,ij,a,aa.")
119 my_assert(alias_db["iijj"].name == "ij", prefix + "We should get set ij when asking for alias iijj.")
124 my_assert((alias_db["aa"].domains[0]).name == "i", prefix + "domain[0] of aa should point to i")
127 my_assert(alias_db.check_domains() == False, prefix + "Check domains should be false after removal of i1")
129 my_assert(alias_db.check_domains() == True, prefix + "Check domains should be true after adding i1 again")
References my_assert().
◆ gdxdump1()
◆ gdxdump2()
◆ get_data_text()
◆ my_assert()
def alias.my_assert | ( | test, | |
msg | |||
) |
Definition at line 102 of file alias.py.
Referenced by check_alias_logic().
◆ same_gdx_dump()
Variable Documentation
◆ aa
◆ aa_orig
◆ db
◆ db2
◆ ii
◆ j1
alias.j1 = ws.add_job_from_string(get_data_text()) |