We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8291bb commit 1aa925fCopy full SHA for 1aa925f
datasets_old_2022_10/interface.py
@@ -94,13 +94,13 @@ def get_config_opts(self) -> Dict[str, Any]:
94
"target": self.get_default_target(),
95
}
96
97
- def copy_as_static(self) -> DatasetConfigStatic:
+ def copy_as_static(self, *, with_main_dataset: bool = True) -> DatasetConfigStatic:
98
"""
99
Static copy
100
101
return DatasetConfigStatic(
102
main_name=self.get_main_name(),
103
- main_dataset=self.get_main_dataset(),
+ main_dataset=self.get_main_dataset() if with_main_dataset else None,
104
extern_data=self.get_extern_data(),
105
default_input=self.get_default_input(),
106
default_target=self.get_default_target(),
0 commit comments