gplately icon indicating copy to clipboard operation
gplately copied to clipboard

Is this a bug?

Open michaelchin opened this issue 1 year ago • 2 comments

@brmather @lauren-ilano @jcannon-gplates See the code below. The 'continue' statement will skip the current loop iteration. The current point will not be reconstructed. But according to the comments, it should be reconstructed. https://github.com/GPlates/gplately/blob/f49b31695882df362fda45f7ad7fcc5bf5c7d68e/gplately/reconstruction.py#L2563-L2570

michaelchin avatar May 04 '24 09:05 michaelchin

Yeah I think that's a bug. Good spot! I think that's been in there since the beginning. Removing continue should fix it, I think.

On a related note, as mentioned in #101, at some stage all that code can get replaced (since it's now in pyGPlates). For example, I recently did a similar thing for the Predicting Sediment Thickness workflow by changing this to this.

jcannon-gplates avatar May 06 '24 04:05 jcannon-gplates

Yeah I think that's a bug. Good spot! I think that's been in there since the beginning. Removing continue should fix it, I think.

On a related note, as mentioned in #101, at some stage all that code can get replaced (since it's now in pyGPlates). For example, I recently did a similar thing for the Predicting Sediment Thickness workflow by changing this to this.

Thanks John.

I will remove the "continue" and do some tests.

michaelchin avatar May 06 '24 05:05 michaelchin

fixed in e7112cac760e3317e312d6c89a30392f61c8fee7

michaelchin avatar May 12 '24 05:05 michaelchin