argopy.utils.check_cyc#

check_cyc(lst, errors='raise')[source]#

Validate a CYC option and returned it as a list of integers

Parameters:
  • cyc (int) โ€“ CYC must be an integer or an iterable with elements that can be casted as positive integers

  • errors ({'raise', 'warn', 'ignore'}) โ€“ Possibly raises a ValueError exception or UserWarning, otherwise fails silently.

Return type:

list(int)