source: issm/trunk-jpl/src/m/miscellaneous/PythonFuncs.py@ 27458

Last change on this file since 27458 was 27458, checked in by jdquinn, 2 years ago

CHG: MATLAB > Python translation; cleanup

File size: 440 bytes
RevLine 
[21303]1import numpy as np
2
[14211]3
[27458]4def logical_and_n(*arg): # {{{
[24213]5 if len(arg):
6 result = arg[0]
7 for item in arg[1:]:
8 result = np.logical_and(result, item)
9 return result
10 else:
11 return None
[27458]12# }}}
[14211]13
[27458]14def logical_or_n(*arg): # {{{
[24213]15 if len(arg):
16 result = arg[0]
17 for item in arg[1:]:
18 result = np.logical_or(result, item)
19 return result
20 else:
21 return None
[27458]22# }}}
Note: See TracBrowser for help on using the repository browser.