| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add functionality to delete temporary variables starting with '_del' from locals_d.
| logger.debug(f"Deleting temporary variable: {expr}") | ||
| with performance_timer.time_expression(expr): | ||
| exec(f"del {expr}", globals(), locals_d) | ||
| for var in expr.split(","): | ||
| locals_d.pop(var.strip(), None) |
| out_file = row["Output"] | ||
| expr = row["Expression"] | ||
|
|
||
| # delete temporary variables starting with '_del' from locals_d |
| if out_file == "_del": | ||
| logger.debug(f"Deleting temporary variable: {expr}") | ||
| with performance_timer.time_expression(expr): | ||
| exec(f"del {expr}", globals(), locals_d) | ||
| for var in expr.split(","): | ||
| locals_d.pop(var.strip(), None) | ||
| continue |
| Back | FazBrowse Home | New Git URL |
While running the summarise step I ran into memory allocation issues.
I tested adding the deletion of temporary variables not used in subsequent summaries and managed to go through the step.