import save from tracker
This commit is contained in:
parent
7240d29b46
commit
6c9b88a22f
1 changed files with 4 additions and 2 deletions
|
|
@ -10,10 +10,12 @@ the import of projects via TOML.
|
|||
|
||||
import tomllib as toml
|
||||
import shutil
|
||||
|
||||
import datalad.api as dl
|
||||
from .tracker import save
|
||||
from .input import sfcf, openQCD
|
||||
from .main import import_project, update_aliases
|
||||
from .meas_io import write_measurement
|
||||
import datalad.api as dl
|
||||
import os
|
||||
from .input.implementations import codes as known_codes
|
||||
from typing import Any
|
||||
|
|
@ -150,7 +152,7 @@ def import_toml(path: str, file: str, copy_file: bool=True) -> None:
|
|||
if copy_file:
|
||||
import_file = os.path.join(path, "toml_imports", uuid, file.split("/")[-1])
|
||||
shutil.copy(file, import_file)
|
||||
dl.save(import_file, message="Import using " + import_file, dataset=path)
|
||||
save(path, files=[import_file], message="Import using " + import_file)
|
||||
print("File copied to " + import_file)
|
||||
print("Imported project.")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue