Guest User

fisheye error

a guest
Jan 24th, 2012
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script:
  2.  
  3. from yt.mods import *
  4.  
  5. pf = load('DD0018/output_0018')
  6.  
  7. N = 512 # Pixels (1024^2)
  8.  
  9. v, c = pf.h.find_max("Density")
  10. radius = 150/pf['kpc']
  11.  
  12.  
  13. #c = (pf.domain_right_edge + pf.domain_left_edge)/2. # Center
  14. #radius = (pf.domain_right_edge - pf.domain_left_edge)/2.
  15.  
  16. fov = 180.0
  17.  
  18. field='Density'
  19. mi,ma = pf.h.all_data().quantities['Extrema']('Density')[0]
  20. mi,ma = na.log10(mi), na.log10(ma)
  21.  
  22. # You may want to comment out the above lines and manually set the min and max
  23. # of the log of the Density field. For example:
  24. # mi,ma = -30.5,-26.5
  25.  
  26. # Another good place to center the camera is close to the maximum density.
  27. # v,c = pf.h.find_max('Density')
  28. # c -= 0.1*radius
  29.  
  30.  
  31. # Construct transfer function
  32. tf = ColorTransferFunction((mi-1, ma+1),nbins=1024)
  33.  
  34. # Sample transfer function with Nc gaussians. Use col_bounds keyword to limit
  35. # the color range to the min and max values, rather than the transfer function
  36. # bounds.
  37. Nc = 5
  38. tf.add_layers(Nc,w=0.005, col_bounds = (mi,ma), alpha=na.logspace(-2,0,Nc),
  39. colormap='RdBu_r')
  40.  
  41. # Create the camera object. Use the keyword: no_ghost=True if a lot of time is
  42. # spent creating vertex-centered data. In this case I'm running with 8
  43. # processors, and am splitting the image plane into 4 pieces and using 2
  44. # processors on each piece.
  45. cam = MosaicFisheyeCamera(c, radius, fov, N,
  46. transfer_function = tf,
  47. sub_samples = 5,
  48. pf=pf,
  49. nimx=2,nimy=2,procs_per_wg=4)
  50.  
  51. # Take a snapshot
  52. im = cam.snapshot()
  53.  
  54. # Save the image
  55. cam.save_image('fisheye_mosaic.png')
  56.  
  57.  
  58. error:
  59.  
  60. P001 yt : [INFO ] 2012-01-24 12:29:47,562 Starting 'Ray casting'
  61. P013 yt : [INFO ] 2012-01-24 12:29:47,569 Rendering fisheye of 512^2
  62. P013 yt : [INFO ] 2012-01-24 12:29:47,570 Starting 'Ray casting'
  63. mpispawn.c:303 Unexpected exit status
  64. Traceback (most recent call last):
  65. Traceback (most recent call last):
  66. File "fisheye_example.py", line 50, in <module>
  67. File "fisheye_example.py", line 50, in <module>
  68. Traceback (most recent call last):
  69. File "fisheye_example.py", line 50, in <module>
  70. Traceback (most recent call last):
  71. File "fisheye_example.py", line 50, in <module>
  72. Traceback (most recent call last):
  73. File "fisheye_example.py", line 50, in <module>
  74. im = cam.snapshot()
  75. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1095, in snapshot
  76. im = cam.snapshot()
  77. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  78. im = cam.snapshot()
  79. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1095, in snapshot
  80. im = cam.snapshot()
  81. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1095, in snapshot
  82. im = cam.snapshot()
  83. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1095, in snapshot
  84. self.volume.initialize_source()
  85. brick.cast_plane(tfp, vector_plane)
  86. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 668, in initialize_source
  87. KeyboardInterrupt
  88. self.volume.initialize_source()
  89. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 668, in initialize_source
  90. Traceback (most recent call last):
  91. File "fisheye_example.py", line 50, in <module>
  92. self.volume.initialize_source()
  93. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 668, in initialize_source
  94. self.volume.initialize_source()
  95. im = cam.snapshot()
  96. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 668, in initialize_source
  97. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  98. brick.cast_plane(tfp, vector_plane)
  99. KeyboardInterrupt
  100. Traceback (most recent call last):
  101. File "fisheye_example.py", line 50, in <module>
  102. im = cam.snapshot()
  103. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  104. brick.cast_plane(tfp, vector_plane)
  105. KeyboardInterrupt
  106. Traceback (most recent call last):
  107. File "fisheye_example.py", line 50, in <module>
  108. im = cam.snapshot()
  109. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  110. Traceback (most recent call last):
  111. File "fisheye_example.py", line 50, in <module>
  112. brick.cast_plane(tfp, vector_plane)
  113. KeyboardInterrupt
  114. im = cam.snapshot()
  115. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  116. brick.cast_plane(tfp, vector_plane)
  117. KeyboardInterrupt
  118. Traceback (most recent call last):
  119. File "fisheye_example.py", line 50, in <module>
  120. im = cam.snapshot()
  121. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  122. brick.cast_plane(tfp, vector_plane)
  123. KeyboardInterrupt
  124. Traceback (most recent call last):
  125. File "fisheye_example.py", line 50, in <module>
  126. im = cam.snapshot()
  127. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 1102, in snapshot
  128. brick.cast_plane(tfp, vector_plane)
  129. KeyboardInterrupt
  130. vcd = current_node.grid.get_vertex_centered_data(field,smoothed=True,no_ghost=self.no_ghost).astype('float64')
  131. vcd = current_node.grid.get_vertex_centered_data(field,smoothed=True,no_ghost=self.no_ghost).astype('float64')
  132. vcd = current_node.grid.get_vertex_centered_data(field,smoothed=True,no_ghost=self.no_ghost).astype('float64')
  133. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 491, in get_vertex_centered_data
  134. vcd = current_node.grid.get_vertex_centered_data(field,smoothed=True,no_ghost=self.no_ghost).astype('float64')
  135. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 491, in get_vertex_centered_data
  136. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 491, in get_vertex_centered_data
  137. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 491, in get_vertex_centered_data
  138. cg = self.retrieve_ghost_zones(1, field, smoothed=smoothed)
  139. cg = self.retrieve_ghost_zones(1, field, smoothed=smoothed)
  140. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 458, in retrieve_ghost_zones
  141. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 458, in retrieve_ghost_zones
  142. cg = self.retrieve_ghost_zones(1, field, smoothed=smoothed)
  143. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 458, in retrieve_ghost_zones
  144. cg = self.retrieve_ghost_zones(1, field, smoothed=smoothed)
  145. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 458, in retrieve_ghost_zones
  146. level, new_left_edge, **kwargs)
  147. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3490, in __init__
  148. level, new_left_edge, **kwargs)
  149. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3490, in __init__
  150. level, new_left_edge, **kwargs)
  151. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3490, in __init__
  152. level, new_left_edge, **kwargs)
  153. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3490, in __init__
  154. AMRCoveringGridBase.__init__(self, *args, **kwargs)
  155. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3346, in __init__
  156. AMRCoveringGridBase.__init__(self, *args, **kwargs)
  157. AMRCoveringGridBase.__init__(self, *args, **kwargs)
  158. AMRCoveringGridBase.__init__(self, *args, **kwargs)
  159. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3346, in __init__
  160. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3346, in __init__
  161. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3346, in __init__
  162. self._refresh_data()
  163. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3365, in _refresh_data
  164. self._refresh_data()
  165. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3365, in _refresh_data
  166. self._refresh_data()
  167. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3365, in _refresh_data
  168. self._refresh_data()
  169. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3365, in _refresh_data
  170. AMR3DData._refresh_data(self)
  171. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 309, in _refresh_data
  172. AMR3DData._refresh_data(self)
  173. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 309, in _refresh_data
  174. self.get_data()
  175. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3537, in get_data
  176. AMR3DData._refresh_data(self)
  177. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 309, in _refresh_data
  178. self.get_data()
  179. AMR3DData._refresh_data(self)
  180. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3562, in get_data
  181. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 309, in _refresh_data
  182. self.get_data()
  183. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3537, in get_data
  184. self._get_list_of_grids()
  185. self.get_data()
  186. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3537, in get_data
  187. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3511, in _get_list_of_grids
  188. self._get_data_from_grid(grid, fields_to_get)
  189. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 102, in save_state
  190. tr = func(self, grid, field, *args, **kwargs)
  191. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3618, in _get_data_from_grid
  192. self._get_list_of_grids()
  193. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3511, in _get_list_of_grids
  194. self._get_list_of_grids()
  195. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3515, in _get_list_of_grids
  196. self.left_edge - buf, self.ActiveDimensions + nz)
  197. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3338, in __init__
  198. g_fields = [grid[field].astype("float64") for field in fields]
  199. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 157, in __getitem__
  200. self.get_data(key)
  201. self.left_edge - buf, self.ActiveDimensions + nz)
  202. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 190, in get_data
  203. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3338, in __init__
  204. temp = self.hierarchy.io.pop(self, field)
  205. count -= cg._get_data_from_grid(g, [])
  206. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 87, in save_state
  207. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/utilities/io_handler.py", line 61, in pop
  208. self.dds = self.pf.h.select_grids(self.level)[0].dds.copy()
  209. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py", line 103, in select_grids
  210. tr = func(self, grid, field, *args, **kwargs)
  211. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 3439, in _get_data_from_grid
  212. self.dds = self.pf.h.select_grids(self.level)[0].dds.copy()
  213. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py", line 103, in select_grids
  214. grid.child_mask, self.domain_width, ll, 0)
  215. KeyboardInterrupt
  216. return self.grids[self.grid_levels.flat == level]
  217. return self.grids[self.grid_levels.flat == level]
  218. KeyboardInterrupt
  219. KeyboardInterrupt
  220. return self._read_data_set(grid, field)
  221. File "/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/frontends/enzo/io.py", line 185, in _read_data_set
  222. "/Grid%08i/%s" % (grid.id, field)))
  223. KeyboardInterrupt
  224.  
  225. Child exited abnormally!
  226. Killing remote processes...DONE
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×