Skip to content

Instantly share code, notes, and snippets.

@seberg
seberg / numpy_logo_design_brainstorm.svg
Created September 20, 2019 23:10
Some brainstorming, based on Inessas designs, as SVG (the SVG is not tidied up, but traced bitmap and just moved around by hand)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seberg
seberg / README.md
Last active November 27, 2019 18:45
Assessing the NumPy namespace

Downloading both files and running the cells (takes a while) should give you drop downs with the NumPy namespace (dark green names should be the ones that end up in the main numpy namespace).

After clicking one of them, tab will go to the next, and 1, 2, 3 , and 4 will allow to fairly quickly choose how you feel about the function. I left many blank (at least the ones that are not part of the main namespace). Then you press "save" and after gathering a few of them, maybe we can get some nice result out of the data.

Unfortunately the Jupyter widgets are failry slow, although with the keyboard it was not an issue for me.

My take on the categories:

Sebastian's Philosophy of the Array Object Types and DTypes

This object is solely for me to organize my thoughts, it probably is a horrific thing if seen by a theoretical computer scientist, and gets a lot of the terminalogy wrong. Type probably usually means a theoretical type, which I think is defined as the set of all possible instances.

@seberg
seberg / analyze_kwargs.py
Last active April 24, 2020 02:49
Hacky script to analyze python kwargs passing
#!/usr/bin/env python3
from pathlib import Path
import ast
import tokenize
class FindFuncs(ast.NodeVisitor):
# Very dirtily adapted and stolen from NumPy tests...
def __init__(self, filename, include_attributes=True):