This commit is contained in:
Jing Ling
2020-09-15 23:57:46 +08:00
parent aa7cec7fbb
commit 9d639008ea
+2 -2
View File
@@ -143,7 +143,6 @@ class Dataset:
if is_valid: if is_valid:
return True return True
else:
if not safety: if not safety:
raise InvalidDimensions raise InvalidDimensions
return False return False
@@ -274,7 +273,8 @@ class Dataset:
""" """
Export :class:`Dataset` object to `format`. Export :class:`Dataset` object to `format`.
:param \\*\\*kwargs: (optional) custom configuration to the format `export_set`. :param format: export format
:param kwargs: (optional) custom configuration to the format `export_set`.
""" """
fmt = registry.get_format(format) fmt = registry.get_format(format)
if not hasattr(fmt, 'export_set'): if not hasattr(fmt, 'export_set'):