Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
viljarjf committed Nov 26, 2024
1 parent 69cf8e8 commit c503412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/instamatic/simulation/grid.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from __future__ import annotations

import warnings

import numpy as np

from instamatic.simulation.warnings import NotImplementedWarning

# TODO carbon lace


Expand Down Expand Up @@ -62,6 +66,7 @@ def get_hole_filter(self, x: np.ndarray, y: np.ndarray) -> np.ndarray:

def get_center_mark(self, x: np.ndarray, y: np.ndarray) -> np.ndarray:
# TODO
warnings.warn('Center mark is not implemented yet', NotImplementedWarning)
return np.zeros(x.shape, dtype=bool)

def array_from_coords(self, x: np.ndarray, y: np.ndarray) -> np.ndarray:
Expand Down

0 comments on commit c503412

Please sign in to comment.