Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,29 @@ installation, submission, monitoring, and various commands provided by GridTK.
Before diving into GridTK, ensure you have the following prerequisites:

1. A working Slurm setup.
2. [pipx](https://pipx.pypa.io/stable/) installed.
2. [uv](https://docs.astral.sh/uv/) installed (recommended) or [pipx](https://pipx.pypa.io/stable/).
3. GridTK installed (instructions provided below).

## Installation

To install GridTK, open your terminal and run the following command:
The recommended way to install GridTK is using `uv`:

```bash
$ uv tool install gridtk
```

Or run it directly without installing:

```bash
$ uvx gridtk --help
```

Alternatively, you can use `pipx`:

```bash
$ pipx install gridtk
```

It is **not recommended** to install GridTK using `pip install gridtk` in the
same environment as your experiments. GridTK does not need to be installed in
the same environment as your experiments and its dependencies may conflict with
Expand Down
2 changes: 1 addition & 1 deletion src/gridtk/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def cleanup_empty_database(self):
and len(self.list_jobs(update_jobs=False)) == 0
):
Path(self.database).unlink()
if self.logs_dir.exists() and len(os.listdir(self.logs_dir)) == 0:
if self.logs_dir.exists() and not any(self.logs_dir.iterdir()):
shutil.rmtree(self.logs_dir)

def __del__(self):
Expand Down
Loading