Skip to content

Commit 4660100

Browse files
committed
Add margin to CutRFBucket2D of 1% to avoid leakage of particles out of bucket. Add version update.
1 parent b47fdab commit 4660100

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.0.3"
22

trackers/rf_bucket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ def is_in_separatrix(self, z, dp):
266266
Returns boolean whether this coordinate is located
267267
strictly inside the separatrix.
268268
"""
269-
return np.logical_and(np.logical_and(self.zleft < z, z < self.zright), self.hamiltonian(z, dp) > 0)
269+
return np.logical_and(np.logical_and(self.zleft < z, z < self.zright),
270+
self.hamiltonian(z, dp) > 0.01 * self.Hmax)
270271

271272
def bucket_area(self):
272273
xmin, xmax = self.zleft, self.zright

0 commit comments

Comments
 (0)