Skip to content

Commit

Permalink
Merge branch 'main' into CURA-11796_combine_long_and_short_unretract
Browse files Browse the repository at this point in the history
  • Loading branch information
HellAholic authored Jun 26, 2024
2 parents 7a695da + 14e7dc2 commit 6247895
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/gcodeanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,13 @@ jobs:
continue
infilename = os.path.join(folder_path, filename)
with open(infilename.rsplit(".", 1)[0] + ".time", "r") as f:
match = re.match(r"^.*?real\s+(\d+)m(\d+\.\d+)s", f.read())
timer = 0 if not match else float(match[1])
content = f.read()
match = re.search(r"^real\s+(\d+)m(\d+\.\d+)s", content, re.MULTILINE)
if match:
timer = float(match.group(1)) * 60 + float(match.group(2))
else:
timer = 0
frame = GCodeAnalyzer.DataFrame(infilename)
line_lengths = frame.gc.extrusions['length'].describe()
Expand Down

0 comments on commit 6247895

Please sign in to comment.