all convert is ready now

This commit is contained in:
QuanyiLi
2023-05-06 21:06:51 +01:00
parent 2564764c17
commit 7501a04618
5 changed files with 8 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ def write_to_directory(convert_func,
if not contains_explicit_return(convert_func):
raise RuntimeError("The convert function should return a metadata dict")
if "version" not in kwargs:
if "version" in kwargs:
kwargs.pop("version")
logger.info("the specified version in kwargs is replaced by argument: 'dataset_version'")