Re: [yt-users] parallelHOP problem, did I break python?
Geoffrey,
4. So can someone point me to a 2.0 installation script? Thanks a bunch.
I think the simplest way to get this is to make a new copy of yt in your src/ directory. Do something like this: $ hg clone http://hg.enzotools.org/yt/ yt-2 and then go into yt-2, and copy the 'hdf5.cfg' file from the yt source you have been using in here. Make sure you're using the correct branch "yt": $ hg branch yt And then do: $ python setup.py install You'll have to "make" the fKDpy.so file again, and then do the command above again. Remember, this is the branch that is under active development and has many changes compared to older versions of yt. Some of your scripts may not work without modification. Good luck! Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)
Did the
hg clone hg branch cd yt2.0 python setup.py install copied Forthon insize yt2.0 python setup.py install inside the new Forthon directory cd yt2.0 python setup.py install
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/mods.py",
but now inside python when I try to import yt.mods I get line 74, in <module> from yt.analysis_modules.halo_finding.api import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/api.py", line 31, in <module> from halo_objects import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/halo_objects.py", line 45, in <module> from parallel_hop.parallel_hop_interface import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 36 free_tree, find_chunk_nearest_neighbors ^ IndentationError: unexpected indent
From G.S.
Geoffrey,
4. So can someone point me to a 2.0 installation script? Thanks a bunch.
I think the simplest way to get this is to make a new copy of yt in your src/ directory. Do something like this:
$ hg clone http://hg.enzotools.org/yt/ yt-2
and then go into yt-2, and copy the 'hdf5.cfg' file from the yt source you have been using in here. Make sure you're using the correct branch "yt":
$ hg branch yt
And then do:
$ python setup.py install
You'll have to "make" the fKDpy.so file again, and then do the command above again.
Remember, this is the branch that is under active development and has many changes compared to older versions of yt. Some of your scripts may not work without modification.
Good luck!
Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice) _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
I guess when you break things twice you fix them! The new yt2.0 I installed has problems, but when I went back and did sudo python setup.py install in my old yt that was having parallel hop problem, the script that was complaining is working again! I checked the version with SVN info gso:yt-trunk-svn gso$ svn info Path: . URL: http://svn.enzotools.org/yt/trunk Repository Root: http://svn.enzotools.org/yt Repository UUID: a79caf2f-f534-0410-a086-a967bc00d294 Revision: 1811 Node Kind: directory Schedule: normal Last Changed Author: mturk Last Changed Rev: 1811 Last Changed Date: 2010-08-24 18:56:59 -0700 (Tue, 24 Aug 2010)
From the URL:...was I suppose to do hg branch trunk instead of just hg branch in the yt2.0?
So since it was last updated by Matt on 24 Aug 2010, I assume I'm using the latest instead of the 1.7 right? Sorry for all the hassle... From G.S.
Did the
hg clone hg branch cd yt2.0 python setup.py install copied Forthon insize yt2.0 python setup.py install inside the new Forthon directory cd yt2.0 python setup.py install
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/mods.py",
but now inside python when I try to import yt.mods I get line 74, in <module> from yt.analysis_modules.halo_finding.api import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/api.py", line 31, in <module> from halo_objects import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/halo_objects.py", line 45, in <module> from parallel_hop.parallel_hop_interface import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 36 free_tree, find_chunk_nearest_neighbors ^ IndentationError: unexpected indent
From G.S.
Geoffrey,
4. So can someone point me to a 2.0 installation script? Thanks a bunch.
I think the simplest way to get this is to make a new copy of yt in your src/ directory. Do something like this:
$ hg clone http://hg.enzotools.org/yt/ yt-2
and then go into yt-2, and copy the 'hdf5.cfg' file from the yt source you have been using in here. Make sure you're using the correct branch "yt":
$ hg branch yt
And then do:
$ python setup.py install
You'll have to "make" the fKDpy.so file again, and then do the command above again.
Remember, this is the branch that is under active development and has many changes compared to older versions of yt. Some of your scripts may not work without modification.
Good luck!
Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice) _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Stephen's changes added an import error that broke "from yt.mods import *". I've pushed a fix. I think you should be able to do "yt instinfo -u" but otherwise, pull and update. -Matt On Fri, Oct 29, 2010 at 3:10 PM, <gso@physics.ucsd.edu> wrote:
I guess when you break things twice you fix them! The new yt2.0 I installed has problems, but when I went back and did sudo python setup.py install in my old yt that was having parallel hop problem, the script that was complaining is working again!
I checked the version with SVN info gso:yt-trunk-svn gso$ svn info Path: . URL: http://svn.enzotools.org/yt/trunk Repository Root: http://svn.enzotools.org/yt Repository UUID: a79caf2f-f534-0410-a086-a967bc00d294 Revision: 1811 Node Kind: directory Schedule: normal Last Changed Author: mturk Last Changed Rev: 1811 Last Changed Date: 2010-08-24 18:56:59 -0700 (Tue, 24 Aug 2010)
From the URL:...was I suppose to do
hg branch trunk instead of just hg branch in the yt2.0?
So since it was last updated by Matt on 24 Aug 2010, I assume I'm using the latest instead of the 1.7 right? Sorry for all the hassle...
From G.S.
Did the
hg clone hg branch cd yt2.0 python setup.py install copied Forthon insize yt2.0 python setup.py install inside the new Forthon directory cd yt2.0 python setup.py install
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/mods.py",
but now inside python when I try to import yt.mods I get line 74, in <module> from yt.analysis_modules.halo_finding.api import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/api.py", line 31, in <module> from halo_objects import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/halo_objects.py", line 45, in <module> from parallel_hop.parallel_hop_interface import \ File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 36 free_tree, find_chunk_nearest_neighbors ^ IndentationError: unexpected indent
From G.S.
Geoffrey,
4. So can someone point me to a 2.0 installation script? Thanks a bunch.
I think the simplest way to get this is to make a new copy of yt in your src/ directory. Do something like this:
$ hg clone http://hg.enzotools.org/yt/ yt-2
and then go into yt-2, and copy the 'hdf5.cfg' file from the yt source you have been using in here. Make sure you're using the correct branch "yt":
$ hg branch yt
And then do:
$ python setup.py install
You'll have to "make" the fKDpy.so file again, and then do the command above again.
Remember, this is the branch that is under active development and has many changes compared to older versions of yt. Some of your scripts may not work without modification.
Good luck!
Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice) _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi everyone, I was wondering if anyone has done plotting of a single field over a line of sight from point0 (x0,y0,z0) to point1 (z1,y1,z1)? (I guess this is similar to a spectrum generator, but couldn't find info on it on the doc page) The simplest way of doing this that I can think of with the existing tools is to generate a "aligned cutting plane" slice that contains the two points in the orthogonal plane, and use the colorbar as an indicator of the values in the field. The 2nd method I thought of, is to make an YT object including all the cells that is crossed by the line of sight from point0 to point1. on the x axis plot the distance sqrt(x^2+y^2+z^2), the y axis plot the field value in that cell. But the problem I have with this method is I don't know how to construct such an object to begin with. I'll play around with the first method, but I think the second method is what I really want, so any help or work-around would be appreciated. Thank you. From G.S.
Hi Geoffrey, Try the ortho_ray or ray objects -- they are documented under the "available objects" section and I think they'll do what you want. -Matt On Tue, Nov 2, 2010 at 9:24 PM, <gso@physics.ucsd.edu> wrote:
Hi everyone, I was wondering if anyone has done plotting of a single field over a line of sight from point0 (x0,y0,z0) to point1 (z1,y1,z1)? (I guess this is similar to a spectrum generator, but couldn't find info on it on the doc page)
The simplest way of doing this that I can think of with the existing tools is to generate a "aligned cutting plane" slice that contains the two points in the orthogonal plane, and use the colorbar as an indicator of the values in the field.
The 2nd method I thought of, is to make an YT object including all the cells that is crossed by the line of sight from point0 to point1. on the x axis plot the distance sqrt(x^2+y^2+z^2), the y axis plot the field value in that cell. But the problem I have with this method is I don't know how to construct such an object to begin with.
I'll play around with the first method, but I think the second method is what I really want, so any help or work-around would be appreciated.
Thank you.
From G.S.
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
gso@physics.ucsd.edu
-
Matthew Turk
-
Stephen Skory