wellmap.iter_well_indices

wellmap.iter_well_indices(pattern)[source]

Yield the indices for the given well(s).

The given pattern can either specify a single well (e.g. “A1”) or several, using the pattern syntax (e.g. “A1,B2”, “A1-B2”, “A1,A3,…,B11”).

Examples:

>>> list(wellmap.iter_well_indices('A1'))
[(0, 0)]
>>> list(wellmap.iter_well_indices('A1,B2'))
[(0, 0), (1, 1)]
>>> list(wellmap.iter_well_indices('A1-B2'))
[(0, 0), (0, 1), (1, 0), (1, 1)]

See also: Well formats