To be safe, try: hg up -C 8bd9f Which will put you on the development branch of yt. On Aug 4, 2014 1:23 PM, "Brendan Griffen" <brendan.f.griffen@gmail.com> wrote:
loadyt; cd $YT_DEST/src/yt-hg; hg pull http://bitbucket.org/yt_analysis/yt; hg up; python2.7 setup.py build_ext -i'
Gave me change set:
---
4f4914860077
---
This good?
BG
On Mon, Aug 4, 2014 at 2:20 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Brendan,
That's my fork, which is pretty old and outdated. The object isn't even called a StaticOutput anymore.
You should be able to pull from yt_analysis/yt and update (as of the release a few hours ago) to the "yt" branch. 3.0 is now the default.
Matt On Aug 4, 2014 1:17 PM, "Brendan Griffen" <brendan.f.griffen@gmail.com> wrote:
Hi,
I just did:
loadyt; cd $YT_DEST/src/yt-hg; hg pull http://bitbucket.org/MatthewTurk/yt-3.0; hg up; python2.7 setup.py build_ext -i
I then did the following (which worked previously): pf = load(basepath+ext+'.0.hdf5')
yt : [INFO ] 2014-08-04 14:11:07,101 Calculating time from 2.128e-02 to be 1.671e+15 seconds
yt : [INFO ] 2014-08-04 14:11:07,102 Assuming length units are in Mpc/h (comoving)
yt : [INFO ] 2014-08-04 14:11:07,102 Parameters: current_time = 1.67110631651e+15
yt : [INFO ] 2014-08-04 14:11:07,102 Parameters: domain_dimensions = [2 2 2]
yt : [INFO ] 2014-08-04 14:11:07,103 Parameters: domain_left_edge = [ 0. 0. 0.]
yt : [INFO ] 2014-08-04 14:11:07,103 Parameters: domain_right_edge = [ 100. 100. 100.]
yt : [INFO ] 2014-08-04 14:11:07,104 Parameters: cosmological_simulation = 1
yt : [INFO ] 2014-08-04 14:11:07,104 Parameters: current_redshift = 45.999999479
yt : [INFO ] 2014-08-04 14:11:07,104 Parameters: omega_lambda = 0.6825
yt : [INFO ] 2014-08-04 14:11:07,104 Parameters: omega_matter = 0.3175
yt : [INFO ] 2014-08-04 14:11:07,104 Parameters: hubble_constant = 0.6711
yt : [INFO ] 2014-08-04 14:11:07,285 Allocating for 1.074e+09 particles
yt : [INFO ] 2014-08-04 14:14:25,748 Identified 6.401e+07 octs
yt : [INFO ] 2014-08-04 14:14:25,994 Adding unknown field ('PartType1', 'Coordinates') to list of fields
yt : [INFO ] 2014-08-04 14:14:25,994 Adding unknown field ('PartType1', 'ParticleIDs') to list of fields
yt : [INFO ] 2014-08-04 14:14:25,994 Adding unknown field ('PartType1', 'Potential') to list of fields
yt : [INFO ] 2014-08-04 14:14:25,994 Adding unknown field ('PartType1', 'Velocities') to list of fields
yt : [INFO ] 2014-08-04 14:14:25,994 Adding unknown field ('PartType1', 'Masses') to list of fields
yt : [INFO ] 2014-08-04 14:14:26,095 Adding unknown field ('all', 'Potential') to list of fields
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/nfs/blank/h4231/bgriffen/data/lib/yt-x86_64/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
202 else:
203 filename = fname
--> 204 __builtin__.execfile(filename, *where)
/nfs/blank/h4231/bgriffen/work/projects/caterpillar/c2ray/code/submitcic/ytcic.py in <module>()
---> 59 rho_crit_0 = pf.cosmology.critical_density(0.)
AttributeError: 'GadgetHDF5StaticOutput' object has no attribute 'cosmology'
It seems the data has no attributes now?
Brendan
_______________________________________________ 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