Paste #645

Welcome To LodgeIt

Welcome to the LodgeIt pastebin. In order to use the notification feature a 31 day cookie with an unique ID was created for you. The lodgeit database does not store any information about you, it's just used for an advanced pastebin experience :-). Read more on the about lodgeit page. Have fun :-)

hide this notification

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
yt : [INFO     ] 2024-08-13 18:20:00,434 Parameters: current_time              = 0.00342185598253743
yt : [INFO     ] 2024-08-13 18:20:00,434 Parameters: domain_dimensions         = [64 64 64]
yt : [INFO     ] 2024-08-13 18:20:00,434 Parameters: domain_left_edge          = [0. 0. 0.]
yt : [INFO     ] 2024-08-13 18:20:00,434 Parameters: domain_right_edge         = [28.49002849 28.49002849 28.49002849]
Traceback (most recent call last):
  File "/home/nathan/script.py", line 4, in <module>
    yt.SlicePlot(ds_nyx, "x", 'density')
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/yt/visualization/plot_window.py", line 1820, in __init__
    (bounds, center, display_center) = get_window_parameters(
                                       ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/yt/visualization/plot_window.py", line 71, in get_window_parameters
    center, display_center = ds.coordinates.sanitize_center(center, axis)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/yt/geometry/coordinates/coordinate_handler.py", line 331, in sanitize_center
    center = parse_center_array(center, ds=self.ds, axis=axis)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/yt/funcs.py", line 1330, in parse_center_array
    if not ds._is_within_domain(center):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/yt/data_objects/static_output.py", line 2046, in _is_within_domain
    if x < self.domain_left_edge[i]:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nathan/miniforge3/envs/yt_env/lib/python3.12/site-packages/unyt/array.py", line 1949, in __array_ufunc__
    out_arr = np.array(out_arr, copy=False)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.