Skip to content

Commit e8c8ee5

Browse files
committed
revert some files to upstream/main, doing only dict building tests on this PR
1 parent 52aa4e7 commit e8c8ee5

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

src/diffpy/cmi/cli.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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-
11275
def copy_example(pack_example: str) -> Path:
11376
"""Copy an example into the current working directory.
11477

tests/test__init__.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)