Closed avivajpeyi closed 2 years ago
29.1 TiB
is crazy large!! Surely it shouldn't be this big...
That's also the wrong dimensions, right? What are the shapes of rho_circ
and g
?
Ah, yeah there is a silly bug:
post = inference_data.posterior
rho_circ = post.rho_circ.values.flatten()
period = post.p.values.flatten()
print(f"rho_circ shape: {rho_circ.shape}")
print(f"period shape: {period.shape}")
rho_circ = np.repeat(rho_circ, 500, axis=0)
period = np.repeat(period, 500, axis=0)
print("After downsampling")
print(f"rho_circ shape: {rho_circ.shape}")
print(f"period shape: {period.shape}")
rho_circ shape: (4000,)
period shape: (4000,)
After downsampling
rho_circ shape: (2000000,)
period shape: (2000000,)
Surprised that this didn't cause issues earlier!
To reproduce