Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

ENH: add numerical constants #51

Merged
merged 1 commit into from
Apr 15, 2020
Merged

ENH: add numerical constants #51

merged 1 commit into from
Apr 15, 2020

Conversation

person142
Copy link
Member

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()

@rgommers rgommers merged commit 080173d into numpy:master Apr 15, 2020
@rgommers
Copy link
Member

LGTM, merged. Thanks @person142.

Note that there's also non-float constants; integer flags like np.CLIP.

@person142 person142 deleted the constants branch April 15, 2020 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants