+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --shape /working/shape.shape.json --write-shape /working/shape.json /working/e1865ea2-b774-4967-9906-2ffafe0aa4af/processing/data/laser.ptd.dat fit 2026-07-16T03:42:18 - INFO: Profile Alignment 0.0.39 2026-07-16T03:42:18 - INFO: Alignment track will be output to /working/e1865ea2-b774-4967-9906-2ffafe0aa4af/processing/data =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-07-16T03:42:18 - INFO: Input: /working/e1865ea2-b774-4967-9906-2ffafe0aa4af/processing/data/laser.ptd.dat 2026-07-16T03:42:18 - INFO: Sonar: True 2026-07-16T03:42:18 - INFO: Method: fit 2026-07-16T03:42:18 - INFO: Shape: /working/shape.shape.json 2026-07-16T03:42:18 - INFO: Shape info: /working/shape.json 2026-07-16T03:42:18 - INFO: Track format: json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Reading PTD file in binary format... Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-07-16T03:42:27 - INFO: Reading sonar track took 0.42919039726257324 sec! 2026-07-16T03:42:27 - INFO: Reading sonar alignment track took {0.0007393360137939453} sec! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-07-16T03:42:28 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-07-16T03:42:28 - INFO: Calculating the size for all frames ... 2026-07-16T03:42:37 - INFO: 200 frames are processed in 8.34 seconds. rate: 23.97 fp/s 2026-07-16T03:42:37 - INFO: Median Scale of 200 frame found to be: 0.5340660623849197 2026-07-16T03:42:37 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-07-16T03:42:37 - INFO: Fit to reference shape ... Optimization failed for a frame: {ABNORMAL: } Optimization failed for a frame: {ABNORMAL: } 2026-07-16T03:45:28 - INFO: {16947} frames are processed in {169.48} seconds. Rate: 100.00 fp/s Track data saved to /working/e1865ea2-b774-4967-9906-2ffafe0aa4af/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/e1865ea2-b774-4967-9906-2ffafe0aa4af/processing/data/laser_aligned.ptd.dat