[Yt-svn] commit/yt: MatthewTurk: Fixing field lists
Bitbucket
commits-noreply at bitbucket.org
Fri Apr 15 09:35:56 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/6f7bc3dee3a6/
changeset: r4132:6f7bc3dee3a6
branch: yt
user: MatthewTurk
date: 2011-04-15 18:35:48
summary: Fixing field lists
affected #: 1 file (35 bytes)
--- a/yt/gui/reason/extdirect_repl.py Thu Apr 14 21:55:49 2011 -0700
+++ b/yt/gui/reason/extdirect_repl.py Fri Apr 15 12:35:48 2011 -0400
@@ -322,8 +322,9 @@
_tpw = PWViewerExtJS(_tsl, (DLE[_txax], DRE[_txax], DLE[_tyax], DRE[_tyax]), setup = False)
_tpw._current_field = _tfield
_tpw.set_log(_tfield, True)
- _twidget_data = {'fields': list(set(_tpf.h.field_list +
- _tpf.h.derived_field_list)),
+ _tfield_list = list(set(_tpf.h.field_list + _tpf.h.derived_field_list))
+ _tfield_list.sort()
+ _twidget_data = {'fields': _tfield_list,
'initial_field': _tfield}
""" % dict(pfname = pfname,
axis = inv_axis_names[axis],
@@ -358,7 +359,7 @@
_tpw = PWViewerExtJS(_tsl, (DLE[_txax], DRE[_txax], DLE[_tyax], DRE[_tyax]), setup = False)
_tpw._current_field = _tfield
_tpw.set_log(_tfield, True)
- _tfield_list = _tpf.h.field_list + _tpf.h.derived_field_list
+ _tfield_list = list(set(_tpf.h.field_list + _tpf.h.derived_field_list))
_tfield_list.sort()
_twidget_data = {'fields': _tfield_list,
'initial_field': _tfield}
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list