Skip to content

Commit

Permalink
closes #45
Browse files Browse the repository at this point in the history
shift to using tempfiles instead of filename based on reporter name
  • Loading branch information
quaquel committed Mar 21, 2023
1 parent e1f86e4 commit 98c648a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pynetlogo/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def find_netlogo_mac():

def find_netlogo_linux():
raise NotImplementedError(
("NetLogoLink requires the netlogo_home " "and netlogo_version parameters on Linux")
("NetLogoLink requires the netlogo_home on Linux")
)


Expand Down Expand Up @@ -510,7 +510,7 @@ def repeat_report(self, netlogo_reporter, reps, go="go", include_t0=True):
commands = []
fns = {}
for variable in cols:
fn = r"{0}/{1}{2}".format(tempfolder, variable, ".txt")
_, fn = tempfile.mkstemp(suffix=".txt", dir=tempfolder)
fns[variable] = fn
fn = '"{}"'.format(fn)
fn = fn.replace(os.sep, "/")
Expand Down

0 comments on commit 98c648a

Please sign in to comment.