<pre><code>yt : [WARNING ] 2020-07-11 16:27:32,912 Extending theta dimension to 2PI + left edge.
yt : [INFO ] 2020-07-11 16:27:32,927 Parameters: current_time = 0.0
yt : [INFO ] 2020-07-11 16:27:32,928 Parameters: domain_dimensions = [2 2 0]
yt : [INFO ] 2020-07-11 16:27:32,929 Parameters: domain_left_edge = [ 0.0000e+00 -6.5536e+09 0.0000e+00]
yt : [INFO ] 2020-07-11 16:27:32,931 Parameters: domain_right_edge = [6.55360000e+09 6.55360000e+09 6.28318531e+00]
yt : [INFO ] 2020-07-11 16:27:32,932 Parameters: cosmological_simulation = 0.0
yt : [INFO ] 2020-07-11 16:27:32,939 Allocating for 8.800e+01 particles (index particle type 'all')
yt : [INFO ] 2020-07-11 16:27:32,941 Identified 9.000e+00 octs
Traceback (most recent call last):
File "C:\Users\rocke\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\richard\new 1.py", line 8, in <module>
slc= yt.ProjectionPlot(ds,'theta','density')
File "C:\Users\rocke\anaconda3\lib\site-packages\yt\visualization\plot_window.py", line 1464, in __init__
validate_mesh_fields(test_data_source, fields)
File "C:\Users\rocke\anaconda3\lib\site-packages\yt\visualization\plot_window.py", line 132, in validate_mesh_fields
canonical_fields = data_source._determine_fields(fields)
File "C:\Users\rocke\anaconda3\lib\site-packages\yt\data_objects\data_containers.py", line 1165, in _determine_fields
finfo = self.ds._get_field_info("unknown", fname)
File "C:\Users\rocke\anaconda3\lib\site-packages\yt\data_objects\static_output.py", line 798, in _get_field_info
raise YTFieldNotFound((ftype, fname), self)
YTFieldNotFound: Could not find field '('all', 'density')' in puredef_hdf5_chk_000000.
</code></pre>
<p>看起来我在按你的方式操作时出现了新的错误,但它现在正在读取我的数据文件。我以前没有见过这个错误,因为它是yt模块独有的</p>