Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Commits
6d54f2ca
Commit
6d54f2ca
authored
6 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
fix a doctest
parent
2e54c7a0
No related branches found
No related tags found
No related merge requests found
Pipeline
#70391
passed
6 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencilssfg/composer/basic_composer.py
+2
-2
2 additions, 2 deletions
src/pystencilssfg/composer/basic_composer.py
with
2 additions
and
2 deletions
src/pystencilssfg/composer/basic_composer.py
+
2
−
2
View file @
6d54f2ca
...
@@ -412,7 +412,7 @@ class SfgBasicComposer(SfgIComposer):
...
@@ -412,7 +412,7 @@ class SfgBasicComposer(SfgIComposer):
You can look at the expression
'
s dependencies:
You can look at the expression
'
s dependencies:
>>>
sorted
(
expr
.
depends
,
key
=
lambda
v
:
v
.
name
)
>>>
sorted
(
expr
.
depends
,
key
=
lambda
v
:
v
.
name
)
[
x
:
float
,
y
:
float
,
z
:
float
]
[
x
:
float
32
,
y
:
float
32
,
z
:
float
32
]
If you use an existing expression to create a larger one, the new expression
If you use an existing expression to create a larger one, the new expression
inherits all variables from its parts:
inherits all variables from its parts:
...
@@ -421,7 +421,7 @@ class SfgBasicComposer(SfgIComposer):
...
@@ -421,7 +421,7 @@ class SfgBasicComposer(SfgIComposer):
>>>
expr2
>>>
expr2
x
+
y
*
z
+
w
x
+
y
*
z
+
w
>>>
sorted
(
expr2
.
depends
,
key
=
lambda
v
:
v
.
name
)
>>>
sorted
(
expr2
.
depends
,
key
=
lambda
v
:
v
.
name
)
[
w
:
float
,
x
:
float
,
y
:
float
,
z
:
float
]
[
w
:
float
32
,
x
:
float
32
,
y
:
float
32
,
z
:
float
32
]
"""
"""
return
AugExpr
.
format
(
fmt
,
*
deps
,
**
kwdeps
)
return
AugExpr
.
format
(
fmt
,
*
deps
,
**
kwdeps
)
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
82997bed
·
6 months ago
mentioned in commit
82997bed
mentioned in commit 82997bedc617b08f12fc7c46a4bf0981e5c2fad4
Toggle commit list
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