Advertisement
eschnett

Untitled

Nov 1st, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.39 KB | None | 0 0
  1. $ python
  2. Python 2.7.10 (default, Oct  1 2015, 12:52:17)
  3. [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import yt
  6. >>> ds = yt.load('~/src/SimulationIO/example.h5')
  7. yt : [INFO     ] 2015-11-01 10:10:35,975 Parameters: current_time              = 0.0
  8. yt : [INFO     ] 2015-11-01 10:10:35,975 Parameters: domain_dimensions         = 3
  9. yt : [INFO     ] 2015-11-01 10:10:35,975 Parameters: domain_left_edge          = [ 0.  0.  0.]
  10. yt : [INFO     ] 2015-11-01 10:10:35,976 Parameters: domain_right_edge         = [ 1.  1.  1.]
  11. yt : [INFO     ] 2015-11-01 10:10:35,976 Parameters: cosmological_simulation   = 0
  12. >>> ds.print_stats()
  13. Traceback (most recent call last):
  14.   File "<stdin>", line 1, in <module>
  15.   File "/Users/eschnett/src/yt/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 319, in root_only
  16.     return func(*args, **kwargs)
  17.   File "/Users/eschnett/src/yt/yt/data_objects/static_output.py", line 361, in print_stats
  18.     self.index.print_stats()
  19.   File "/Users/eschnett/src/yt/yt/data_objects/static_output.py", line 328, in index
  20.     self.create_field_info()
  21.   File "/Users/eschnett/src/yt/yt/data_objects/static_output.py", line 371, in create_field_info
  22.     self.field_info = self._field_info_class(self, self.field_list)
  23. TypeError: __init__() takes exactly 2 arguments (3 given)
  24. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement