<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Writing a python script for PV5.2, I needed to save a temporal ptvtu file and faced this problem again: looking at the proxy's XML definition, the writer has the <i>name=</i><span style="font-family:monospace,monospace">WriteAllTimeSteps </span>property.<br></div><br><span style="font-family:monospace,monospace">      <IntVectorProperty command="SetWriteAllTimeSteps"<br>                         default_values="0"<br>                         label="Write all timesteps as file-series"<br>                         name="WriteAllTimeSteps"<br>                         number_of_elements="1"></span><br><br></div>So I tried something like this:<br><br></div> <span style="font-family:monospace,monospace"> SaveData("test.pvtu", WriteAllTimeSteps=1)<br><br></span></div>But it failed claiming that the writer has no <span style="font-family:monospace,monospace">WriteAllTimeSteps </span>property!<br></div>Well, looking at the <span style="font-family:monospace,monospace">help()</span> on the writer instance it looked like indeed, the exposed python property is not call <span style="font-family:monospace,monospace">WriteAllTimeSteps </span>but <span style="font-family:monospace,monospace">Writealltimestepsasfileseries</span>:<br><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace"> |  Writealltimestepsasfileseries<br> |      When WriteAllTimeSteps is turned ON, the writer is<br> |      executed once for each timestep available from the<br> |      reader.</span><br><br></div><div>Isn't it ugly?<br>So is the choice of exposing the property using its concatenated label a deliberate choice or a bug?<br></div><div>It seems to me very unnatural, the label should be reserved for better human readable UI printing.<br><br></div><div>What do you think?<br></div><div><br></div><div>Best,<br></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>