LoginSignup
0
0

More than 1 year has passed since last update.

Modelerデータ加工Tips#03コード

Last updated at Posted at 2021-03-18

Modelerデータ加工TIPS#03 出題用サンプルコード

python
stream = modeler.script.stream()

node = stream.create("userinput", u"ユーザー入力")
node.setXYPosition(100,100)
node.setPropertyValue("names", [u"故障",u"$-故障"])
node.setKeyedPropertyValue("data", u"故障", "1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0")
node.setKeyedPropertyValue("custom_storage", u"故障", "Integer")
node.setKeyedPropertyValue("data", u"$-故障", "1 1 1 1 0 1 1 1 1 0 1 0 0 0 0 1 0 0 1 1")
node.setKeyedPropertyValue("custom_storage", u"$-故障", "Integer")
node.setPropertyValue("data_mode", "Ordered")
node.setKeyedPropertyValue("type", u"故障", "Flag")
node.setKeyedPropertyValue("type", u"$-故障", "Flag")

スクリプトの手順はメニュー>ツール>ストリームのプロパティ>実行で以下のスクリプトをコピー&ペーストし再生ボタンを実行

dp-03-img32.png

出題は以下の記事にあります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0