Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LISA Simulation
LISA Instrument
Merge requests
!46
Draft: Resolve "Use Numpy arrays instead of `ForEachObject` instances"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Resolve "Use Numpy arrays instead of `ForEachObject` instances"
34-use-numpy-arrays-instead-of-foreachobject-instances
into
master
Overview
7
Commits
3
Pipelines
10
Changes
1
Closed
Jean-Baptiste Bayle
requested to merge
34-use-numpy-arrays-instead-of-foreachobject-instances
into
master
3 years ago
Overview
7
Commits
3
Pipelines
10
Changes
1
Expand
Closes
#34 (closed)
0
0
Merge request reports
Viewing commit
7c1b4e41
Show latest version
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7c1b4e41
Import necessary functions in tests
· 7c1b4e41
Jean-Baptiste Bayle
authored
3 years ago
tests/test_indexing.py
+
4
−
1
Options
@@ -5,7 +5,10 @@
from
pytest
import
raises
import
numpy
as
np
from
lisainstrument.indexing
import
*
from
lisainstrument.indexing
import
index2mosa
,
mosa2index
,
transform
,
rotate
,
reflect
from
lisainstrument.indexing
import
mosa2sc
,
sc2leftdistant
,
sc2rightdistant
,
sc2leftmosa
,
sc2rightmosa
from
lisainstrument.indexing
import
sc2bothmosas
,
mosa2distant
,
mosa2adjacent
from
lisainstrument.indexing
import
empty_mosa
,
empty_sc
,
ones_mosa
,
ones_sc
,
zeros_mosa
,
zeros_sc
,
full_mosa
,
full_sc
def
test_index2mosa
():
Loading