Skip to content

Commit

Permalink
Error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Jul 24, 2024
1 parent bf9c1d0 commit d0f595c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/flax/examples/data_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def generate_foam1_images(seed: float, size: int, ndata: int) -> np.ndarray:
Array of generated data.
"""
if not have_xdesign:
raise RuntimeError("Package xdesign is required for use of this module.")
raise RuntimeError("Package xdesign is required for use of this function.")
np.random.seed(seed)
saux = np.zeros((ndata, size, size, 1), dtype=np.float32)
for i in range(ndata):
Expand All @@ -130,7 +130,7 @@ def generate_foam2_images(seed: float, size: int, ndata: int) -> np.ndarray:
Array of generated data.
"""
if not have_xdesign:
raise RuntimeError("Package xdesign is required for use of this module.")
raise RuntimeError("Package xdesign is required for use of this function.")
np.random.seed(seed)
saux = np.zeros((ndata, size, size, 1), dtype=np.float32)
for i in range(ndata):
Expand Down

0 comments on commit d0f595c

Please sign in to comment.