Skip to content

Commit 1aa925f

Browse files
committed
DatasetConfig copy_as_static with_main_dataset
1 parent d8291bb commit 1aa925f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datasets_old_2022_10/interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ def get_config_opts(self) -> Dict[str, Any]:
9494
"target": self.get_default_target(),
9595
}
9696

97-
def copy_as_static(self) -> DatasetConfigStatic:
97+
def copy_as_static(self, *, with_main_dataset: bool = True) -> DatasetConfigStatic:
9898
"""
9999
Static copy
100100
"""
101101
return DatasetConfigStatic(
102102
main_name=self.get_main_name(),
103-
main_dataset=self.get_main_dataset(),
103+
main_dataset=self.get_main_dataset() if with_main_dataset else None,
104104
extern_data=self.get_extern_data(),
105105
default_input=self.get_default_input(),
106106
default_target=self.get_default_target(),

0 commit comments

Comments
 (0)