Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias Vector2, Array, etc when no numpy #166

Open
fwkoch opened this issue May 3, 2017 · 1 comment
Open

Alias Vector2, Array, etc when no numpy #166

fwkoch opened this issue May 3, 2017 · 1 comment

Comments

@fwkoch
Copy link
Contributor

fwkoch commented May 3, 2017

Current implementation ignores math properties when numpy isn't available as a dependency. It would be nice to add basic aliases for these property types (eg. Vector2 is List of floats with min_length = max_length = 2).

The biggest difficulty here is that these aliased property types will not have all the numpy/vectormath methods. That means code that requires these methods will fail. I think maybe this isn't too big a problem - packages can require properties[math] if they need the methods. Possibly a warning on import if numpy isn't available?

@fwkoch
Copy link
Contributor Author

fwkoch commented Feb 15, 2018

This has an open pull request (#189) but I'm not convinced of the value so I'm hesitant to merge...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant