MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / make_test_filename

Function make_test_filename

lib/matplotlib/testing/compare.py:30–35  ·  view source on GitHub ↗

Make a new filename by inserting *purpose* before the file's extension.

(fname, purpose)

Source from the content-addressed store, hash-verified

28
29
30def make_test_filename(fname, purpose):
31 """
32 Make a new filename by inserting *purpose* before the file's extension.
33 """
34 base, ext = os.path.splitext(fname)
35 return f'{base}-{purpose}{ext}'
36
37
38def _get_cache_path():

Callers 2

copy_baselineMethod · 0.85
compare_imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…