Comments (4)
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.
from yt.
Thanks for bringing this up -- I am sorry we didn't address it before! Perhaps @cphyc can provide some insight?
from yt.
I'm happy to help but I'm 200% busy until February 9 and won't have time until then. Most likely, these two lines are the right entry points:
yt/yt/frontends/ramses/data_structures.py
Line 977 in 1e90fd7
yt/yt/frontends/ramses/data_structures.py
Line 1046 in 1e90fd7
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
self.domain_right_edge = np.full(3, self.parameters["boxlen"], dtype="float64")
Could you try and let us know if this works? If it does, we'd be happy for you to submit a PR, or I can do it in a couple of weeks.
from yt.
Hi,
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:
yt : [INFO ] 2024-01-24 16:11:33,248 Parameters: domain_right_edge = [150. 150. 150.]
However, the ratio code_length/unit_l is still incorrect by a factor of boxlen and I get the same offset in my plots.
I also tried removing the factor of boxlen in line 977 to give:
setdefaultattr(self, "length_unit", self.quan(length_unit , "cm"))
I'm completely new to both Ramses and yt so I'm not sure if it was logical to do this, but this seems to completely break any plots I make of the gas.
from yt.
Related Issues (20)
- How to change the particle size in function "ParticlePhasePlot" HOT 2
- BUG: Multiple fields break sanitization HOT 2
- BUG: segault on manylinux2014 image HOT 5
- Deprecation warning in GDF (and maybe more?) HOT 3
- Try to project gas particles (SPH) to a mesh with octree structure HOT 2
- ImportError when compiling with gcc 14.1.1 and conda HOT 6
- DOC: docs builds are failing HOT 7
- Incorrect parameter sanitation to np.logspace HOT 2
- CPython 3.13 support (tracker issue)
- Question: How the weight field operates to an yt.create_profile average? HOT 6
- BUG: segfault on macOS (amr64) HOT 11
- Nose testing image comparison: label which image is which? HOT 3
- Editable Installations may be broken in conda environment HOT 7
- BUG: Segfault in smoothing length calculation on Mac HOT 9
- Tipsy Frontend BUG?: oddities with smoothing lengths/positions and bounding box HOT 8
- failing enzo answer tests HOT 6
- CI: test_geo_projection failing on main
- BLD/TST: building fails on `windows-latest` HOT 3
- BLD: can we remove dev-only extra targets ? HOT 3
- DEP: can we drop support for Python 3.9 now ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt.