arras-energy / gridlabd

Arras Energy simulator
https://www.arras.energy/
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Add support for labeled temporary filenames #119

Closed dchassin closed 1 year ago

dchassin commented 1 year ago

Background

Currently the best way to create temporary file names is to use ${GUID}, save the name, and add an #on_exit handler to delete the file when exiting. This is inconvenient and susceptible to errors.

Proposed solution

Create a ${TMPFILE TAG} pseudo-global that allows the automatic creation, access, and destruction of temporary filenames.