ochubar / SRW

Synchrotron Radiation Workshop
Other
82 stars 69 forks source link

this arange does not get max k endpoint, change to linsapce #23

Open dhidas opened 4 years ago

dhidas commented 4 years ago

Original version is missing the max K by an amount dk. As N increases you get closer to the endpoint it becomes closer, but typically the max is somewhat important. I noticed this when trying to pull the max from N=2 where dk is large which was not giving the correct result. Suggest also checking for N=1 with different min/max.