Skip to content

Commit

Permalink
Revert "use .time"
Browse files Browse the repository at this point in the history
This reverts commit 2cf8adb
  • Loading branch information
casperlamboo committed Jan 11, 2024
1 parent 0265e74 commit 72ab846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gcodeanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
run: |
for file in `ls ../NightlyTestModels/*.stl`;
do
( time ./build/Release/CuraEngine slice --force-read-parent --force-read-nondefault -v -p -j ../Cura/resources/definitions/ultimaker_s3.def.json -l $file -o ../`basename $file .stl`.gcode ) 2> $file.time
( time ./build/Release/CuraEngine slice --force-read-parent --force-read-nondefault -v -p -j ../Cura/resources/definitions/ultimaker_s3.def.json -l $file -o ../`basename $file .stl`.gcode ) 2> ../`basename $file .stl`.time
done
working-directory: CuraEngine

Expand All @@ -205,7 +205,7 @@ jobs:
if ext.lower() != ".gcode":
continue
infilename = os.path.join(folder_path, filename)
with open(infilename + ".time", "r") as f:
with open(infilename.split(".")[0] + ".time", "r") as f:
timer = float(re.match(r"^.*?cpu (\d+\.\d+)", f.read())[1])
frame = GCodeAnalyzer.DataFrame(infilename)
Expand Down

0 comments on commit 72ab846

Please sign in to comment.