Closed person142 closed 4 years ago
Scraped them with this script:
import numpy as np def main(): constants = [] for obj_name in dir(np): obj = getattr(np, obj_name) if isinstance(obj, float): constants.append(f'{obj_name}: float') print('\n'.join(sorted(constants))) if __name__ == '__main__': main()
LGTM, merged. Thanks @person142.
Note that there's also non-float constants; integer flags like np.CLIP.
np.CLIP
Scraped them with this script: