Skip to content

Instantly share code, notes, and snippets.

@jbusecke
Created June 18, 2020 15:07
Show Gist options
  • Save jbusecke/8e10857cf3c25723e04ec657b3deb44c to your computer and use it in GitHub Desktop.
Save jbusecke/8e10857cf3c25723e04ec657b3deb44c to your computer and use it in GitHub Desktop.
test.py
dc_dx = c[:,1:] - c[:,0:-1] / dx[:,1:]
#or was it this way?
dc_dx = c[1:,:] - c[0:-1,:] / dx[1:,:]
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment