rename tracker create
Some checks failed
Mypy / mypy (push) Failing after 58s
Pytest / pytest (3.12) (push) Failing after 46s
Pytest / pytest (3.13) (push) Failing after 45s
Pytest / pytest (3.14) (push) Failing after 46s
Ruff / ruff (push) Failing after 32s

This commit is contained in:
Justus Kuhlmann 2025-12-04 11:59:43 +01:00
commit 59519eae3b
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ from configparser import ConfigParser
import sqlite3
import datalad.api as dl
import os
from .tracker import save
from .tracker import save, init
def _create_db(db: str) -> None:
@ -74,5 +74,5 @@ def create(path: str) -> None:
with open(os.path.join(path, ".gitignore"), "w") as fp:
fp.write(".cache")
fp.close()
save(path, message="Initialized correlator library", dataset=path)
save(path, message="Initialized correlator library")
return

View file

@ -29,7 +29,7 @@ def save(path: str, message: str, files: list[str]) -> None:
raise ValueError(f"Tracker {tracker} is not supported.")
def create(path: str) -> None:
def init(path: str) -> None:
tracker = get_tracker(path)
if tracker == 'datalad':
dl.create(path)