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
0da14fbc
Commit
0da14fbc
authored
1 year ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
dddigi: fixing some cppyy.gbl.string occurences
parent
f247c00b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDDigi/python/dddigi.py
+3
-0
3 additions, 0 deletions
DDDigi/python/dddigi.py
with
3 additions
and
0 deletions
DDDigi/python/dddigi.py
+
3
−
0
View file @
0da14fbc
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#
#
# ==========================================================================
# ==========================================================================
from
__future__
import
absolute_import
,
unicode_literals
from
__future__
import
absolute_import
,
unicode_literals
import
cppyy
from
dd4hep_base
import
*
# noqa: F401, F403
from
dd4hep_base
import
*
# noqa: F401, F403
logger
=
None
logger
=
None
...
@@ -276,6 +277,8 @@ def _set(self, name, value):
...
@@ -276,6 +277,8 @@ def _set(self, name, value):
import
dd4hep
as
dd4hep
import
dd4hep
as
dd4hep
act
=
_get_action
(
self
)
act
=
_get_action
(
self
)
nam
=
dd4hep
.
unicode_2_string
(
name
)
nam
=
dd4hep
.
unicode_2_string
(
name
)
if
isinstance
(
value
,
(
list
,)):
# cppyy.gbl.string showing up for some reason
value
=
[
x
.
decode
(
'
utf-8
'
)
if
isinstance
(
x
,
cppyy
.
gbl
.
std
.
string
)
else
x
for
x
in
value
]
if
isinstance
(
value
,
str
):
if
isinstance
(
value
,
str
):
val
=
dd4hep
.
unicode_2_string
(
value
)
val
=
dd4hep
.
unicode_2_string
(
value
)
else
:
else
:
...
...
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