<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">OK. Thanks a lot!</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Rongyang</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch> on behalf of Michele Dolfi <michele.dolfi@gmail.com><br>
<b>Sent:</b> Sunday, December 17, 2017 5:46:32 PM<br>
<b>To:</b> comp-phys-alps-users@lists.phys.ethz.ch<br>
<b>Subject:</b> Re: [ALPS-users] Maybe a DataSet.props bug for ALPS MPS Project</font>
<div> </div>
</div>
<div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello,
<div class=""><br class="">
</div>
<div class="">Thanks for reporting this behavior.</div>
<div class="">We started investigating it a bit and it doesn’t seem to be related to the MPS applications, but to the ALPS Parameters class.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Attached is a small test.</div>
<div class="">Just running "h5dump test.h5” shows the buggy output.</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><span class="x_x_Apple-style-span" style="border-collapse:separate; line-height:normal; border-spacing:0px">
<div class="">--</div>
<div class="">Michele</div>
<div class=""><br class="">
</div>
</span><br class="x_x_Apple-interchange-newline">
</div>
<div></div>
</div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div>
<div class="x_x_AppleOriginalContents"></div>
</div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">
<div></div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 13 Dec 2017, at 10:02, Rongyang Sun <<a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div id="x_x_divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Dear all,</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I found an interesting wrong var assignment in ALPS MPS Project version: MAQUIS repo r4143 (2013-2014). It appears both on OSX bmg package version and builds from source code version on Linux. You can
 use the following simple script to reappear the problem:</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">********************************************************</div>
<div class="" style="margin-top:0px; margin-bottom:0px"># </div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  Author: Rongyang Sun <<a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a>></div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  Date: 2017-12-13 11:59</div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  Last Modified Date: 2017-12-13 11:59</div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  Last Modified By: Rongyang Sun <<a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a>></div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  </div>
<div class="" style="margin-top:0px; margin-bottom:0px">#  Description: A demo to show the interesting bug</div>
<div class="" style="margin-top:0px; margin-bottom:0px"># </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">import pyalps</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">#prepare the input parameters</div>
<div class="" style="margin-top:0px; margin-bottom:0px">parms = [ { </div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'LATTICE'                   : "open chain lattice", </div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'MODEL'                     : "spin",</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'CONSERVED_QUANTUMNUMBERS'  : 'N,Sz',</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'Sz_total'                  : 0,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'J'                         : 1,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'spin'                      : 1,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'SWEEPS'                    : 4,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'NUMBER_EIGENVALUES'        : 1,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'L'                         : 10,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">        'MAXSTATES'                 : 100</div>
<div class="" style="margin-top:0px; margin-bottom:0px">       } ]</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">input_file = pyalps.writeInputFiles('bug',parms)</div>
<div class="" style="margin-top:0px; margin-bottom:0px">res = pyalps.runApplication('mps_optim',input_file,writexml=True)</div>
<div class="" style="margin-top:0px; margin-bottom:0px">data = pyalps.loadEigenstateMeasurements(pyalps.getResultFiles(prefix='bug'),verbose=True)</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">print("\nMODEL: {0}".format(str(data[0][0].props['MODEL'])))</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">********************************************************<br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">It will return "MODEL: 1" not the right "MODEL" parameter because I define an unused parameter 'spin' with value 1. Once a parameter with a name which appears at the value of 'MODEL', it will be replaced
 by the value of the parameter. It is more severe for 't-J' model case. if you set 't': 1.0 and 'J': 0.5, 'MODEL' will be assigned as 0.5 which equals 1.0('t') - 0.5('J')! I have checked the output hdf5 file and found that the wrong replace had happened in
 the file. That means it may be a bug about ALPS MPS code.</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Best regards,</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Rongyang Sun</div>
</div>
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">----</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Comp-phys-alps-users
 Mailing List for the ALPS Project</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="http://alps.comp-phys.org/" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://alps.comp-phys.org/</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">List
 info:<span class="x_x_Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Archive:<span class="x_x_Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Unsubscribe
 by writing a mail to<span class="x_x_Apple-converted-space"> </span></span><a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">comp-phys-alps-users-leave@lists.phys.ethz.ch</a><span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">.</span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>