PASTA-ELN / pasta-eln

PASTA-ELN with new frontend
https://pasta-eln.github.io/pasta-eln/
Other
7 stars 2 forks source link

Sb eln export multiple projects #279

Closed SteffenBrinckmann closed 1 month ago

SteffenBrinckmann commented 2 months ago

@jmurugan-fzj This is the branch with the new and updated exportELN function in inputOutput.py. The inputELN function is not updated yet, hence not a finalized PR

SteffenBrinckmann commented 1 month ago

@jmurugan-fzj I had to change data_upload_task.py since the argument was wrong. Should I have done that? I guess that made the pytest fail. Otherwise, this is ready for review

jmurugan-fzj commented 1 month ago

exportELN function

@SteffenBrinckmann Could you quickly describe the signature of the exportELN function with the new changes as part of the PR? I will create a separate PR for the data_upload_task.py changes then!

SteffenBrinckmann commented 1 month ago

@jmurugan-fzj This should be the signature of the export-function def exportELN(backend:Backend, projectIDs:list[str], fileName:str, dTypes:list[str]=[], verbose:bool=False) -> str: """ export eln to file

Args: backend (backend): PASTA backend instance projectIDs (list): list of docIds of projects fileName (str): fileName which to use for saving dTypes (list): list of strings which should be included in the output, alongside folders x0 & x1; empty list=everything is exported verbose (bool): verbose

Returns: str: report of exportation """