File tree Expand file tree Collapse file tree 2 files changed +1
-49
lines changed Expand file tree Collapse file tree 2 files changed +1
-49
lines changed Original file line number Diff line number Diff line change 2626
2727
2828# Examples
29- def _get_examples_dir (root_path = None ) -> Path :
29+ def _get_examples_dir () -> Path :
3030 """Return the absolute path to the installed examples directory.
3131
3232 Returns
@@ -72,43 +72,6 @@ def map_pack_to_examples() -> dict[str, List[str]]:
7272 return examples_by_pack
7373
7474
75- def copy_examples (
76- examples : List [str ],
77- target_dir : Optional [Path ] = None ,
78- ) -> List [Path ]:
79- """Copy one or more examples to a target directory.
80-
81- Parameters
82- ----------
83- examples : list of str
84- Example name(s): ['example1'], ['pack1']
85- target_dir : Path, optional
86- Target directory where examples should be copied.
87- Defaults to current working directory if not specified.
88-
89- Returns
90- -------
91- list of Path
92- List of destination paths created.
93-
94- Raises
95- ------
96- ValueError
97- If example name is ambiguous (exists in multiple packs).
98- FileNotFoundError
99- If example does not exist.
100- FileExistsError
101- If destination exists and overwrite=False.
102- """
103- return
104-
105-
106- def print_info (pack_examples_dict ):
107- """Pretty print available and installed packs and examples to
108- console."""
109- return
110-
111-
11275def copy_example (pack_example : str ) -> Path :
11376 """Copy an example into the current working directory.
11477
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments