Skip to content

Commit 7ec9970

Browse files
committed
don't use __file__ due to sphinx-gallery
sg doesn't allow for `__file__`
1 parent 795f2c5 commit 7ec9970

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/callbacks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
from typing import Tuple
1414
from mpl_point_clicker import clicker
1515

16-
from pathlib import Path
1716

18-
image = np.load(Path(__file__).parent / "example_image.npy")
17+
image = np.load("example_image.npy")
1918

2019
fig, ax = plt.subplots()
2120
ax.imshow(image, cmap='gray')

examples/example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
Basic Usage
44
-----------
55
6-
A short example showcasing how to use the library. The docstrings will be
7-
turns in REST by sphinx-gallery.
6+
A short example showcasing how to use the library.
87
"""
98

109
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)