biogeme.tools.files module
- class biogeme.tools.files.TemporaryFile[source]
Bases:
object
Class generating a temporary file, so that the user does not bother about its location, or even its name
Example:
with TemporaryFile() as filename: with open(filename, 'w') as f: print('stuff', file=f)