Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion garden_ai/hpc/groundhog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def load_function_from_source(contents: str, name) -> Function:
"""
# Create a temporary file to write the script contents
with tempfile.NamedTemporaryFile(
mode="w", suffix=".py", delete=False, delete_on_close=False
mode="w",
suffix=".py",
delete=False,
) as temp_file:
temp_file.write(contents)
script_path = Path(temp_file.name)
Expand Down