Skip to content

Commit

Permalink
Do not include trashed runs at default and docstring adjusted to ment…
Browse files Browse the repository at this point in the history
…ion 10k limit (#61)
  • Loading branch information
Raalsky authored Mar 8, 2024
1 parent ad54f65 commit 6711432
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [UNRELEASED] neptune-experimental 0.3.5

### Changes
- Do not include trashed runs at default ([#61](https://github.com/neptune-ai/neptune-client-experimental/pull/61))


## neptune-experimental 0.3.4

### Changes
Expand Down
12 changes: 9 additions & 3 deletions src/neptune_fetcher/read_only_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@

from neptune import Project
from neptune.envs import PROJECT_ENV_NAME
from neptune.internal.backends.nql import NQLEmptyQuery
from neptune.internal.backends.nql import (
NQLAttributeOperator,
NQLAttributeType,
NQLQueryAttribute,
)
from neptune.internal.backends.project_name_lookup import project_name_lookup
from neptune.internal.container_type import ContainerType
from neptune.internal.credentials import Credentials
Expand Down Expand Up @@ -97,7 +101,9 @@ def list_runs(self) -> Generator[Dict[str, Optional[str]], None, None]:
leaderboard_entries = self._backend.search_leaderboard_entries(
project_id=self._project_id,
types=[ContainerType.RUN],
query=NQLEmptyQuery(),
query=NQLQueryAttribute(
name="sys/trashed", type=NQLAttributeType.BOOLEAN, operator=NQLAttributeOperator.EQUALS, value=False
),
columns=["sys/id", "sys/name"],
)

Expand Down Expand Up @@ -144,7 +150,7 @@ def fetch_runs_df(
Args:
columns: A list of column names to include in the DataFrame.
Defaults to None, which includes all available columns.
Defaults to None, which includes all available columns up to 10k.
with_ids: A list of run IDs to filter the results.
states: A list of run states to filter the results.
owners: A list of owner names to filter the results.
Expand Down

0 comments on commit 6711432

Please sign in to comment.