You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The length conversion is off by a factor of 150, the value of the box length. However, the density conversion seems to be correct...
1.0
150.0
150.0
I was wondering if anyone had a simple work around for this? I don't think I can just multiply any results with length units by factors of the box length since the density conversion is correct and includes length**3.
Version Information
Operating System: macOS Sonoma 14.1.1
Python Version: 3.11.6
yt version: 4.3.0 (installed via pip)
The text was updated successfully, but these errors were encountered:
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue.
The first sets the length_unit, so 1 * length_unit equals the box size. The second sets the size of the box.
I wonder if the fix is simply to replace the latter by
Thanks for the quick reply. I tried changing the line you suggested, and this does mean the correct domain_right_edge is returned when loading the data:
Bug report
Bug summary
I experience the same issue as #2866: the unit length conversion for a non cosmological simulation is off by a factor of the boxlength.
Code for reproduction
Actual outcome
The length conversion is off by a factor of 150, the value of the box length. However, the density conversion seems to be correct...
I was wondering if anyone had a simple work around for this? I don't think I can just multiply any results with length units by factors of the box length since the density conversion is correct and includes length**3.
Version Information
The text was updated successfully, but these errors were encountered: