From: dunlap@ucar.edu (Rocky Dunlap)
Subject: [lttng-dev] bt2 python - accessing component instances added to graph
Date: Sun, 29 Mar 2020 23:24:37 -0600 [thread overview]
Message-ID: <CADtyBo4tQxYBFZnk6dqTSkU4OjW2Fxmx0xJrP=ADaCz_YUXf1g@mail.gmail.com> (raw)
I noticed that when I add a component to a bt2 graph, e.g.:
sink = g.add_component(SinglePETSink, "sink"+str(idx))
The return value "sink" is not actually an instance of SinglePETSink (which
has been defined as a local Python class). How do I get to the instance of
SinglePETSink that was created?
Rocky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200329/da0c1254/attachment.htm>
next reply other threads:[~2020-03-30 5:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 5:24 Rocky Dunlap [this message]
2020-03-30 13:45 ` Simon Marchi
[not found] ` <CADtyBo6mzBQ3sVUpc4gbxEf7LVsfV+m8oWNMjMdG1gDPsnRR6A@mail.gmail.com>
[not found] ` <32146698-0314-1eaf-e422-2c9e088056e7@simark.ca>
2020-03-30 20:41 ` Rocky Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADtyBo4tQxYBFZnk6dqTSkU4OjW2Fxmx0xJrP=ADaCz_YUXf1g@mail.gmail.com' \
--to=dunlap@ucar.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox