Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
astro
astrotools
Commits
fcf4fceb
Commit
fcf4fceb
authored
Jan 08, 2020
by
teresa.bister
Committed by
Teresa Bister
Jan 08, 2020
Browse files
[simulations] wording of Exception corrected
parent
7b774048
Pipeline
#225492
passed with stages
in 6 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
astrotools/simulations.py
View file @
fcf4fceb
...
...
@@ -195,7 +195,7 @@ class ObservedBound(BaseSimulation):
elif
charge
.
size
==
self
.
ncrs
:
self
.
crs
[
'charge'
]
=
np
.
tile
(
charge
,
self
.
nsets
).
reshape
(
self
.
shape
)
else
:
raise
Exception
(
"Shape of input
ene
rg
i
es not in format (nsets, ncrs)."
)
raise
Exception
(
"Shape of input
cha
rges not in format (nsets, ncrs)."
)
elif
isinstance
(
charge
,
(
float
,
np
.
float
,
int
,
np
.
int
)):
self
.
crs
[
'charge'
]
=
charge
elif
isinstance
(
charge
,
str
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment