Skip to content

Commit

Permalink
Correct tutorial references to model (#7)
Browse files Browse the repository at this point in the history
- Debug Windows tests
- Correct tutorial references to model
  • Loading branch information
khaeru authored Feb 7, 2020
1 parent 04c59c0 commit 4b8ab0a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ixmp/model/gams.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def format(key):
'write to GDX files, e.g. JDBCBackend')

# Invoke GAMS
check_call(command, shell=os.name == 'nt', cwd=model_file.parent)
cwd = self.temp_dir if self.use_temp_dir else model_file.parent
check_call(command, shell=os.name == 'nt', cwd=cwd)

# Read model solution
backend.read_file(self.out_file, ItemType.MODEL, **s_arg,
Expand Down
2 changes: 1 addition & 1 deletion tutorial/transport/R_transport.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
},
"outputs": [],
"source": [
"scen$solve(model=\"transport_ixmp\")"
"scen$solve(model='dantzig')"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorial/transport/R_transport_scenario.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
},
"outputs": [],
"source": [
"scen_detroit$solve(model='transport_ixmp')"
"scen_detroit$solve(model='dantzig')"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorial/transport/py_transport.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"metadata": {},
"outputs": [],
"source": [
"scen.solve(model='transport_ixmp')"
"scen.solve(model='dantzig')"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorial/transport/py_transport_scenario.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"metadata": {},
"outputs": [],
"source": [
"scen_detroit.solve(model='transport_ixmp')"
"scen_detroit.solve(model='dantzig')"
]
},
{
Expand Down

0 comments on commit 4b8ab0a

Please sign in to comment.