add checks of the format of the paths in the database
Some checks failed
Ruff / ruff (push) Waiting to run
Mypy / mypy (push) Failing after 1m9s
Pytest / pytest (3.12) (push) Failing after 1m13s
Pytest / pytest (3.13) (push) Has been cancelled
Pytest / pytest (3.14) (push) Has been cancelled

This commit is contained in:
Justus Kuhlmann 2026-05-06 18:02:25 +02:00
commit 4c4a5fd670
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
3 changed files with 40 additions and 5 deletions

View file

@ -4,7 +4,7 @@ from corrlib import __app_name__
from .initialization import create
from .toml import import_tomls, update_project, reimport_project
from .find import find_record, list_projects
from .find import find_record, list_projects, list_ensembles
from .tools import str2list
from .main import update_aliases
from .meas_io import drop_cache as mio_drop_cache
@ -56,9 +56,9 @@ def lister(
"""
if entities in ['ensembles', 'Ensembles','ENSEMBLES']:
print("Ensembles:")
for item in os.listdir(path / "archive"):
if os.path.isdir(path / "archive" / item):
print(item)
results = list_ensembles(path)
for e in results:
print(e)
elif entities == 'projects':
results = list_projects(path)
print("Projects:")