Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
astro
astrotools
Commits
dfd79dc5
Commit
dfd79dc5
authored
Dec 05, 2019
by
Niklas Uwe Langner
Browse files
[simulations] Save signal_label in crs
parent
f3828748
Pipeline
#215125
passed with stages
in 4 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
astrotools/simulations.py
View file @
dfd79dc5
...
...
@@ -110,6 +110,7 @@ class BaseSimulation:
sets_ids_3d
=
np
.
repeat
(
np
.
arange
(
3
),
np
.
prod
(
self
.
shape
)).
reshape
((
3
,)
+
self
.
shape
)
self
.
crs
[
'vecs'
]
=
self
.
crs
[
'vecs'
][
sets_ids_3d
,
sets_ids
,
np
.
stack
([
shuffle_ids
]
*
3
)]
self
.
signal_label
=
self
.
signal_label
[
sets_ids
,
shuffle_ids
]
self
.
crs
[
'signal_label'
]
=
self
.
signal_label
class
ObservedBound
(
BaseSimulation
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment