From 195a916ee6b809bae696a0739d17fde90f0efca7 Mon Sep 17 00:00:00 2001 From: "Ryan@Home" Date: Thu, 27 Feb 2025 03:07:53 -0500 Subject: [PATCH] PrintAngDist added Mathematica option --- Raphael/dwba_zr.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Raphael/dwba_zr.py b/Raphael/dwba_zr.py index 4290bdb..b9961ad 100755 --- a/Raphael/dwba_zr.py +++ b/Raphael/dwba_zr.py @@ -530,13 +530,16 @@ class DWBA_ZR: stop_time = time.time() print(f"\nTotal time {(stop_time - start_time) :.2f} sec") - def PrintAngDist(self, step:int = 1): + def PrintAngDist(self, step:int = 1, isMathatica:bool = False): count = 0 + end = "\n" + if isMathatica == True: + end = "" for th, xs in zip(self.angList, self.angDist): if step > 1 and count % step != 0: count += 1 continue - print(f"{{{th:6.1f}, {xs:13.10f}}},") + print(f"{{{th:6.1f}, {xs:13.10f}}},", end=end) count += 1 def PlotAngDist(self, angMin = None, angMax = None):