Dear ALPS developers and users,
At revision 7349, collectXY() defined in tools.py has been changed. After this change, I can't extract my observable properly from .h5 files.
I use a parameter named "beta" and an observable also named "beta". collectXY(sets, x="foo", y="beta")@rev.7349 collects both parameters and observables, and makes single list contains both FloatWithError objects (observables) and float literals (parameters). Before this modification, e.g. rev. 7298, collectXY() makes a list that contains only observables. This results in the failure of processing my data. It is very painful to modify many python scripts using collectXY(), so I temporally use the old version of tools.py@rev.7298 (of course this is not desirable.) Is there any good idea??
Thank you in advance.
Shinya Yasuda route16@exa.phys.s.u-tokyo.ac.jp
Hi Shinya,
Using the same name for parameters and observables is indeed a recipe for problems. All I can suggest is that you either make a copy of the old version of collectXY, and use that, or that you add an option to the function to specify whether you want the parameter or observable.
Matthias
On Feb 17, 2014, at 9:55, Shinya Yasuda route16@exa.phys.s.u-tokyo.ac.jp wrote:
Dear ALPS developers and users,
At revision 7349, collectXY() defined in tools.py has been changed. After this change, I can't extract my observable properly from .h5 files.
I use a parameter named "beta" and an observable also named "beta". collectXY(sets, x="foo", y="beta")@rev.7349 collects both parameters and observables, and makes single list contains both FloatWithError objects (observables) and float literals (parameters). Before this modification, e.g. rev. 7298, collectXY() makes a list that contains only observables. This results in the failure of processing my data. It is very painful to modify many python scripts using collectXY(), so I temporally use the old version of tools.py@rev.7298 (of course this is not desirable.) Is there any good idea??
Thank you in advance.
Shinya Yasuda route16@exa.phys.s.u-tokyo.ac.jp
Dear Shinya and Matthias,
In order to mainain backward compatibility, I’ve introduced ignoreProperties option to collectXY at [7353]. By specifying ignoreProperties=True, only measurements will be collected in collectXY().
Best, Synge
On Feb 17, 2014, at 18:06, Matthias Troyer troyer@phys.ethz.ch wrote:
Hi Shinya,
Using the same name for parameters and observables is indeed a recipe for problems. All I can suggest is that you either make a copy of the old version of collectXY, and use that, or that you add an option to the function to specify whether you want the parameter or observable.
Matthias
On Feb 17, 2014, at 9:55, Shinya Yasuda route16@exa.phys.s.u-tokyo.ac.jp wrote:
Dear ALPS developers and users,
At revision 7349, collectXY() defined in tools.py has been changed. After this change, I can't extract my observable properly from .h5 files.
I use a parameter named "beta" and an observable also named "beta". collectXY(sets, x="foo", y="beta")@rev.7349 collects both parameters and observables, and makes single list contains both FloatWithError objects (observables) and float literals (parameters). Before this modification, e.g. rev. 7298, collectXY() makes a list that contains only observables. This results in the failure of processing my data. It is very painful to modify many python scripts using collectXY(), so I temporally use the old version of tools.py@rev.7298 (of course this is not desirable.) Is there any good idea??
Thank you in advance.
Shinya Yasuda route16@exa.phys.s.u-tokyo.ac.jp
comp-phys-alps-users@lists.phys.ethz.ch