Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arraycontext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
arraycontext
Commits
c4f00b8b
Commit
c4f00b8b
authored
3 months ago
by
Alexandru Fikl
Committed by
Andreas Klöckner
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
mypy: fix errors from numpy 2.2
parent
a5eaebe4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#621683
failed
3 months ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arraycontext/container/__init__.py
+2
-1
2 additions, 1 deletion
arraycontext/container/__init__.py
arraycontext/loopy.py
+1
-1
1 addition, 1 deletion
arraycontext/loopy.py
with
3 additions
and
2 deletions
arraycontext/container/__init__.py
+
2
−
1
View file @
c4f00b8b
...
...
@@ -309,7 +309,8 @@ def _deserialize_ndarray_container( # type: ignore[misc]
result
=
type
(
template
)(
template
.
shape
,
dtype
=
object
)
for
i
,
subary
in
serialized
:
result
[
i
]
=
subary
# FIXME: numpy annotations don't seem to handle object arrays very well
result
[
i
]
=
subary
# type: ignore[call-overload]
return
result
...
...
This diff is collapsed.
Click to expand it.
arraycontext/loopy.py
+
1
−
1
View file @
c4f00b8b
...
...
@@ -103,7 +103,7 @@ def _get_scalar_func_loopy_program(actx, c_name, nargs, naxes):
from
arraycontext.transform_metadata
import
ElementwiseMapKernelTag
def
sub
(
name
:
str
)
->
Variable
|
Subscript
:
return
Variable
(
name
)
[
subscript
]
if
subscript
else
Variable
(
name
)
return
Subscript
(
Variable
(
name
)
,
subscript
)
if
subscript
else
Variable
(
name
)
return
make_loopy_program
(
[
domain_bset
],
[
...
...
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