<div dir="ltr">Hi Christine,<div><br></div><div>You can load tipsy data with specified cosmological parameters like this:</div><div><br></div><div><div>    cosmology_parameters = {'current_redshift': 0.0,</div><div>                                               'omega_lambda': 0.728,</div><div>                                               'omega_matter': 0.272,</div><div>                                               'hubble_constant': 0.702}</div></div><div><br></div><div><div>    ds = yt.load(tipsy_filename, </div><div>                        cosmology_parameters=cosmology_parameters)</div></div><div><br></div><div>(in general the load function can take any of the keyword arguments accepted by the TipsyDataset class defined in yt/frontends/tipsy/data_structures.py)</div><div><br></div><div>You're right that the docs should state this explicitly. I've issued a pull request to update the docs here:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2431">https://bitbucket.org/yt_analysis/yt/pull-requests/2431</a><br></div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 11:02 PM, B.W. Keller <span dir="ltr"><<a href="mailto:kellerbw@mcmaster.ca" target="_blank">kellerbw@mcmaster.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christine,<br>
<br>
There are some assumptions made by yt when loading data from gasoline<br>
or changa about  whether a simulation is run with comoving coordinates<br>
or physical ones.  I developed the tipsy frontend mostly working from<br>
gasoline outputs, but it should work for changa too (in other words, I<br>
think you may have found a bug).  Would you be able to upload the<br>
parameter file you are using for this?  Judging from your file name, I<br>
assume you are running one of the agora cosmological runs?<br>
<br>
Ben<br>
<div><div class="h5"><br>
On Thu, Nov 3, 2016 at 8:35 PM, Christine Simpson<br>
<<a href="mailto:christine.simpson@gmail.com">christine.simpson@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I’m trying to load a cosmological snapshot from a Changa simulation (which I<br>
> believe is in the tipsy format).  Yt seems to find some of the cosmological<br>
> parameters but not all of them (not the hubble constant), which messes up<br>
> the units.  See below.  There is some discussion of cosmology parameters and<br>
> tipsy format in the docs, but I did not understand it.  Can anyone with<br>
> experience loading this format give me some pointers?<br>
><br>
> Thanks<br>
> Christine<br>
><br>
> In [1]: pf = load('agora_1e11q_l13.000400')<br>
> yt : [INFO     ] 2016-11-03 15:17:47,253 Parameters: current_time<br>
> = 1.61048087203e+23 s<br>
> yt : [INFO     ] 2016-11-03 15:17:47,253 Parameters: domain_dimensions<br>
> = [2 2 2]<br>
> yt : [INFO     ] 2016-11-03 15:17:47,254 Parameters: domain_left_edge<br>
> = [-0.5 -0.5 -0.5]<br>
> yt : [INFO     ] 2016-11-03 15:17:47,255 Parameters: domain_right_edge<br>
> = [ 0.5  0.5  0.5]<br>
> yt : [INFO     ] 2016-11-03 15:17:47,256 Parameters: cosmological_simulation<br>
> = 1.0<br>
> yt : [INFO     ] 2016-11-03 15:17:47,256 Parameters: current_redshift<br>
> = -1.48991929905e-13<br>
> yt : [INFO     ] 2016-11-03 15:17:47,256 Parameters: omega_lambda<br>
> = 0.728<br>
> yt : [INFO     ] 2016-11-03 15:17:47,256 Parameters: omega_matter<br>
> = 0.272<br>
> yt : [INFO     ] 2016-11-03 15:17:47,256 Parameters: hubble_constant<br>
> = 1.89812815754e-06<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
><br>
______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
</blockquote></div><br></div>