astrofrog / astrofrog/numtraits
Add support for dtype argument
Open
- Dominant language
- Python
- Stars
- 39
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
When writing optimised code, I sometimes require a particular dtype. It would be great to have a dtype argument, that would make `NumricalTrait` try to convert incoming arrays to using the usual numpy safe casting rules.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating NumricalTrait and its existing handling of incoming arrays. Read how numpy dtype conversion and safe casting are currently performed, then determine the expected behavior for a dtype argument. Done means the argument is supported and tests verify conversion using numpy's safe casting rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100