What specifically did you try? What were the particular errors?
Why when I put the Core Diameter parameter in the BATES choice of grain option, does the OpenMotor program aborts without so much explanation?
in GrainPreviewWidget class I marked the lines as comments (python file in ..OpenRocket\OpenMotor\openMotor-staging\uilib\widgets):
43 def updateView(self, data):
44 coreIm, regImage, contours, contourLengths = data
45
46 self.ui.tabFace.cleanup()
47 self.ui.tabFace.showImage(coreIm)
48
49 # if regImage is not None:
50 # self.ui.tabRegression.cleanup()
51 # self.ui.tabRegression.showImage(regImage)
52 # self.ui.tabRegression.showContours(contours)
53
54 # points = [[], []]
55
56 # for k in contourLengths.keys():
57 # points[0].append(k)
58 # points[1].append(contourLengths[k])
59
60 # self.ui.tabAreaGraph.cleanup()
61 # self.ui.tabAreaGraph.showGraph(points)
and more in the GrainPreviewGraph class, I did the same (python file in ..OpenRocket\OpenMotor\openMotor-staging\uilib\widgets):
35 def cleanup(self):
36 if self.image is not None:
37 self.image.remove()
38 self.image = None
39 # if self.numContours > 0:
40 # for _ in range(0, self.numContours):
41 # self.plot.lines.pop(0)
42 # self.numContours = 0
I missed the possibility to use Regression and Area Graph but it worked well with these changes.
Enter your email address to join: