For context, I'm running RAMSES simulations of galaxy clusters. In one very specific circumstance in my analysis system, I get the following error while plotting.
ValueError: The particles span a region larger than the specified boxsize
This problem is easily solved (apparently) by changing the simulation boxsize using
data = pyn.load("output_something")
data.properties["boxsize"] = 2*data.properties["boxsize"]
My question then is:
1. does changing the boxsize like this cause further problems? (I have a bad suspicion that it will)
a. If so, what exactly is using the boxsize that would be impeded?
2. What would be the preferred work around? Should I always limit snapshots to particles within the boxsize when loading them?
Error Reproducing Code (With my snapshot):
data = pyn.load("output_something")
# Aligning data to the axes.
data["pos"] -= data.properties["boxsize"]/2
data.physical_units()
# Plotting
pyn.plot.sph.image(data.dm,qty="rho",**kwargs)