[yt-users] output file option in yt stats command

Matthew Turk matthewturk at gmail.com
Thu Sep 5 17:04:17 PDT 2013


Hi Semyeong,

Thanks for the bug report!  I've issued a pull request here to fix this:

https://bitbucket.org/yt_analysis/yt/pull-request/587/this-adds-output-for-when-max-or-min-is

However, as a quick fix while it's being reviewed, if you add "--max"
or "--min" to the command line, it will work as-is.

Best,

Matt

On Thu, Sep 5, 2013 at 5:01 PM, Semyeong Oh <semyeong.oh at gmail.com> wrote:
> Hello,
>
> I get this error when using -o option for yt stats command.
>
> $ yt stats -o test.txt parameter_file
>
> ….(print out yt stats results) ...
>         Width: 2.180e+20 cmh
>         Width: 3.114e+20 cm
>         Width: 3.531e+20 cmhcm
>         Width: 5.045e+20 cmcm
> Traceback (most recent call last):
>   File "/home/semyeong/soft/yt-x86_64/bin/yt", line 9, in <module>
>     load_entry_point('yt==2.5.5', 'console_scripts', 'yt')()
>   File "/home/semyeong/soft/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 1696, in run_main
>     args.func(args)
>   File "/home/semyeong/soft/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 97, in run
>     self(args)
>   File "/home/semyeong/soft/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 1602, in __call__
>     "%s (%0.5e years): %0.5e at %s\n" % (pf, t, v, c))
> UnboundLocalError: local variable 'v' referenced before assignment
>
> Here is my yt instinfo:
>
> yt module located at:
>     /home/semyeong/soft/yt-x86_64/src/yt-hg
> The supplemental repositories are located at:
>     /home/semyeong/soft/yt-x86_64/src/yt-supplemental
>
> The current version of the code is:
>
> ---
> b118390aa42c
> ---
>
>
> Is the option working properly?
> Thanks for your help.
>
> Semyeong
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list