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

Semyeong Oh semyeong.oh at gmail.com
Thu Sep 5 14:01:22 PDT 2013


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


More information about the yt-users mailing list