Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScientificPython
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scientific Software
ScientificPython
Commits
525f5d1a
Commit
525f5d1a
authored
7 years ago
by
eric pellegrini
Browse files
Options
Downloads
Patches
Plain Diff
start the removal of oldnumeric deps
parent
fc76a112
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Scientific/N.py
+7
-6
7 additions, 6 deletions
Scientific/N.py
with
7 additions
and
6 deletions
Scientific/N.py
+
7
−
6
View file @
525f5d1a
...
...
@@ -3,10 +3,11 @@
# Numeric package. Please don't use it in new code, use numpy
# directly.
from
numpy.oldnumeric
import
*
def
int_sum
(
a
,
axis
=
0
):
return
add
.
reduce
(
a
,
axis
)
def
zeros_st
(
shape
,
other
):
return
zeros
(
shape
,
dtype
=
other
.
dtype
)
from
numpy
import
ndarray
as
array_type
#from numpy.oldnumeric import *
#def int_sum(a, axis=0):
# return add.reduce(a, axis)
#def zeros_st(shape, other):
# return zeros(shape, dtype=other.dtype)
#from numpy import ndarray as array_type
from
numpy
import
ndarray
as
ArrayType
package
=
"
NumPy
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment