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

fix: add numpy as a possible prefix #31

Merged
merged 2 commits into from
Jan 6, 2023
Merged

Conversation

premsrii
Copy link
Collaborator

@premsrii premsrii commented Jan 6, 2023

Previously number_transformer.MathExpressionTransformer required the user to provide an operator string as np.xxx if they wanted to use an operator from NumPy. Using numpy.xxx would raise an AtrributeError. This commit fixes it, by adding support for the full name numpy.

Previously number_transformer.MathExpressionTransformer required the user
to provide an operator string as `np.xxx` if they wanted to use an
operator from NumPy. Using `numpy.xxx` would raise an AtrributeError.
This commit fixes it, by adding support for the full name `numpy`.
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #31 (cf44a22) into develop (5bd25f5) will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #31      +/-   ##
===========================================
+ Coverage    99.17%   99.28%   +0.11%     
===========================================
  Files            8        8              
  Lines          363      419      +56     
===========================================
+ Hits           360      416      +56     
  Misses           3        3              
Impacted Files Coverage Δ
src/sk_transformers/base_transformer.py 100.00% <ø> (ø)
src/sk_transformers/datetime_transformer.py 100.00% <ø> (ø)
src/sk_transformers/encoder_transformer.py 100.00% <ø> (ø)
src/sk_transformers/utils.py 100.00% <ø> (ø)
src/sk_transformers/deep_transformer.py 100.00% <100.00%> (ø)
src/sk_transformers/generic_transformer.py 99.18% <100.00%> (ø)
src/sk_transformers/number_transformer.py 100.00% <100.00%> (ø)
src/sk_transformers/string_transformer.py 98.23% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@premsrii premsrii marked this pull request as ready for review January 6, 2023 10:52
@chrislemke chrislemke merged commit 8fec7d3 into develop Jan 6, 2023
@chrislemke chrislemke deleted the numpy_math_transformer branch January 6, 2023 16:11
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

Successfully merging this pull request may close these issues.

2 participants