[yt-users] question about the star analysis module
Christine Simpson
csimpson at astro.columbia.edu
Sat May 28 12:56:13 PDT 2011
Rates.
For example, if I ran the module to get the star formation rates like this:
sfr = StarFormationRate(pf, data_source=all)
How can I access the contents of sfr in the script itself, rather than just writing it out to a file?
Thanks
Christine
On May 28, 2011, at 3:51 PM, Stephen Skory wrote:
> Hi Christine,
>
>> I have a question about the star analysis module. I understand how to
>> run it and print out a file with the results, but is there a way to run
>> it and access the results within the script? I am ignorant of how
>> classes work in python, and I am uncertain whether there is a trivial
>> way to access the contents of a star analysis object, or whether I need
>> a method to access its contents. I looked at the code for the class and
>> I didn't see a method that does this, so I'm guessing there is a simple
>> way to do this?
>
> Are you talking about star formation rates or colors?
>
> --
> Stephen Skory
> s at skory.us
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110528/5326e9b4/attachment.htm>
More information about the yt-users
mailing list