Kyle Mandli
Kyle Mandli
I saw this the other day too and eventually got it to pass after restarting a few times. I guess we need to check to make sure that everything is...
ndarrays allow field names to be built into them and referenced although I have never used that particular functionality. I might be a nice way to implement this rather than...
So I have tried implementing this using the first methodology above but have run into some issues that may not allow this to really happen (at least via this approach)....
I thought about this approach but I think it might be difficult to ensure that copies of q do not get made and ensuring that the fields are truly pointing...
The code ``` python import numpy q = numpy.empty((3,4,4)) fields = {'density':q[0,:,:], 'momentum':q[1,:,:], 'energy':q[2,:,:]} for n in xrange(3): q[n,:,:] = float(n) fields['energy'] = numpy.exp(fields['energy']) print q[2,:,:] print fields['energy'] ``` gives...
I agree on all points. I had a simple list implementation that I was thinking might at the very least be written out and read in from file formats that...
Looking at the current code I am not sure I see a way out of this dilemma without breaking something. Some thoughts though: - Best solution would probably be to...
Agreed. Better to not break things.
I think keyword arguments are probably the right thing to use for this type of functionality and has the benefit of being less confusing. The one problem is if someone...
Sorry, I was on my mobile all yesterday. I am just trying to understand what you mean by your options above, namely what context would are you suggesting moving the...