Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
finesse
finesse3
Commits
2803d1bc
Commit
2803d1bc
authored
Nov 01, 2019
by
Sean Leavey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add component position convenience method
parent
ff87fabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
finesse/tracing/tracesolution.py
finesse/tracing/tracesolution.py
+6
-0
No files found.
finesse/tracing/tracesolution.py
View file @
2803d1bc
...
@@ -155,6 +155,12 @@ class BaseTraceSolution(metaclass=abc.ABCMeta):
...
@@ -155,6 +155,12 @@ class BaseTraceSolution(metaclass=abc.ABCMeta):
qys
[
node
]
=
qy
qys
[
node
]
=
qy
return
qys
return
qys
@
property
def
component_positions
(
self
):
return
[(
comp
,
self
.
_data
[
comp
][
'z'
])
for
comp
in
self
.
_data
[
'components'
]
if
not
self
.
_data
[
comp
][
'is_space'
]]
@
abc
.
abstractmethod
@
abc
.
abstractmethod
def
plot
(
self
,
filename
=
None
,
show
=
True
,
w_scale
=
SI
.
MILLI
,
markers
=
None
):
def
plot
(
self
,
filename
=
None
,
show
=
True
,
w_scale
=
SI
.
MILLI
,
markers
=
None
):
raise
NotImplementedError
raise
NotImplementedError
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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