Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
e92021a7
Commit
e92021a7
authored
2 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix python style according to Flake8
parent
ce55e2a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/DDG4/scripts/TestProperties.py
+15
-3
15 additions, 3 deletions
examples/DDG4/scripts/TestProperties.py
with
15 additions
and
3 deletions
examples/DDG4/scripts/TestProperties.py
+
15
−
3
View file @
e92021a7
...
@@ -282,11 +282,12 @@ def run():
...
@@ -282,11 +282,12 @@ def run():
act
.
vector_PxPyPzEVector
=
[(
1
*
GeV
,
2
*
GeV
,
3
*
GeV
,
4
*
GeV
),
act
.
vector_PxPyPzEVector
=
[(
1
*
GeV
,
2
*
GeV
,
3
*
GeV
,
4
*
GeV
),
(
11
*
GeV
,
22
*
GeV
,
33
*
GeV
,
44
*
GeV
),
(
11
*
GeV
,
22
*
GeV
,
33
*
GeV
,
44
*
GeV
),
(
111
*
GeV
,
222
*
GeV
,
333
*
GeV
,
444
*
GeV
)]
(
111
*
GeV
,
222
*
GeV
,
333
*
GeV
,
444
*
GeV
)]
print
(
dir
(
act
.
prop_int
))
print
(
dir
(
act
.
get
())
)
act
.
enableUI
(
)
print
(
dir
(
act
.
get
().
properties
))
# Check read access:
# Check read access:
<<<<<<<
HEAD
<<<<<<<
HEAD
<<<<<<<
HEAD
<<<<<<<
HEAD
<<<<<<<
HEAD
print
(
'
-------------------------------------------------------
'
)
print
(
'
-------------------------------------------------------
'
)
print
(
act
.
prop_str
)
# 'Hello World!'
print
(
act
.
prop_str
)
# 'Hello World!'
...
@@ -334,6 +335,10 @@ def run():
...
@@ -334,6 +335,10 @@ def run():
print
(
'
--> %s
'
%
(
str
(
act
.
prop_PxPyPzEVector
),))
# (1 * GeV,2 * GeV,3 * GeV,4 * GeV)
print
(
'
--> %s
'
%
(
str
(
act
.
prop_PxPyPzEVector
),))
# (1 * GeV,2 * GeV,3 * GeV,4 * GeV)
print
(
'
--> %s
'
%
(
str
(
'
-------------------------------------------------------
'
),))
print
(
'
--> %s
'
%
(
str
(
'
-------------------------------------------------------
'
),))
=======
=======
|||||||
parent
of
297
d253e
(
Fix
python
style
according
to
Flake8
)
=======
"""
>>>
>>>>
297
d253e
(
Fix
python
style
according
to
Flake8
)
print
(
'
--> {value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
print
(
'
--> {value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_str
)))
# 'Hello World!'
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_str
)))
# 'Hello World!'
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_bool
)))
# True
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_bool
)))
# True
...
@@ -344,9 +349,16 @@ def run():
...
@@ -344,9 +349,16 @@ def run():
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_XYZVector
)))
# (1 * m,2 * m,3 * m)
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_XYZVector
)))
# (1 * m,2 * m,3 * m)
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_PxPyPzEVector
)))
# (1 * GeV,2 * GeV,3 * GeV,4 * GeV)
print
(
'
--> {value}
'
.
format
(
value
=
str
(
act
.
prop_PxPyPzEVector
)))
# (1 * GeV,2 * GeV,3 * GeV,4 * GeV)
print
(
'
--> {value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
print
(
'
--> {value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
<<<<<<<
HEAD
>>>>>>>
d656762e
(
Fix
python
style
according
to
Flake8
)
>>>>>>>
d656762e
(
Fix
python
style
according
to
Flake8
)
act.enableUI()
act.enableUI()
||||||| parent of 297d253e (Fix python style according to Flake8)
act.enableUI()
=======
"""
>>>>>>>
297
d253e
(
Fix
python
style
according
to
Flake8
)
# Check read access:
# Check read access:
logger
.
info
(
'
+{value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
logger
.
info
(
'
+{value}
'
.
format
(
value
=
'
-------------------------------------------------------
'
))
...
...
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