from molsysmt._private.exceptions import ArgumentError
import numpy as np
from molsysmt import pyunitwizard as puw


def digest_color(color, caller=None):
    if isinstance(color, str):
        if len(color) == 7 and color.startswith('#'):
            return color
    if isinstance(color, (list, tuple, np.ndarray)):
        if len(color) == 3:
            return color
    raise ArgumentError('color', value=color, caller=caller, message=None)

1add6adb9e576ce86df47d678602aa607dc0c030
<mask token>

<mask token>


def digest_color(color, caller=None):
    if isinstance(color, str):
        if len(color) == 7 and color.startswith('#'):
            return color
    if isinstance(color, (list, tuple, np.ndarray)):
        if len(color) == 3:
            return color
    raise ArgumentError('color', value=color, caller=caller, message=None)

from molsysmt._private.exceptions import ArgumentError
import numpy as np
from molsysmt import pyunitwizard as puw


def digest_color(color, caller=None):
    if isinstance(color, str):
        if len(color) == 7 and color.startswith('#'):
            return color
    if isinstance(color, (list, tuple, np.ndarray)):
        if len(color) == 3:
            return color
    raise ArgumentError('color', value=color, caller=caller, message=None)
