astrofrog / astrofrog/numtraits

Add support for dtype argument

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.