Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
ae54e48c
Commit
ae54e48c
authored
Oct 21, 2019
by
Michael Kuron
Browse files
correctly print RNG nodes
parent
9f76ea1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/rng.py
View file @
ae54e48c
...
...
@@ -70,7 +70,8 @@ class RNGBase(CustomCodeNode):
self
.
_time_step
,
self
.
_offsets
,
self
.
keys
,
self
.
_dim
,
self
.
result_symbols
)
def
__repr__
(
self
):
return
(
", "
.
join
([
'{}'
]
*
self
.
_num_vars
)
+
" <- {}RNG"
).
format
(
*
self
.
result_symbols
,
self
.
_name
.
capitalize
())
return
(
", "
.
join
([
'{}'
]
*
self
.
_num_vars
)
+
"
\\
leftarrow {}RNG"
).
format
(
*
self
.
result_symbols
,
self
.
_name
.
capitalize
())
class
PhiloxTwoDoubles
(
RNGBase
):
...
...
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