adamantine-sim / adamantine

Software to simulate heat transfer for additive manufacturing
https://adamantine-sim.github.io/adamantine/
Other
37 stars 10 forks source link

fix file parsing logic in load_segment_scan_path #245

Closed Lance-Drane closed 1 year ago

Lance-Drane commented 1 year ago

Hi, I'm part of the INTERSECT SDK team - I help a little bit with integrating the adamantine digital twin into the overall INTERSECT deployment. Marshall McDonnell and Jesse McGaha can vouch for me. While debugging the deployment, Jesse and I noticed a few oddities with the segment file scanner:

dalg24-jenkins commented 1 year ago

Can one of the admins verify this patch?

Rombur commented 1 year ago

OK to test

Rombur commented 1 year ago

We now have a test failing (see here). I think this because, as you pointed out, the number of segments was irrelevant before this PR. Can you change the number of segments from 2 to 3 in tests/data/scan_path_L.txt

Lance-Drane commented 1 year ago

We now have a test failing (see here). I think this because, as you pointed out, the number of segments was irrelevant before this PR. Can you change the number of segments from 2 to 3 in tests/data/scan_path_L.txt

Happy to make this change. There's another test file, integration_da_add_material_sp.txt, which will now only analyze the first 3 data lines instead of all of them. Would you like for me to change the number of path segments here to 13 instead of the initial value of 3?

There are a couple of other files tests/data/thermoelastic_bare_plate_add_material_scan_path.txt and tests/data/thermoelastic_bare_plate_scan_path.txt which say that the number of path segments is 3 but there are only 2 lines of data; however, this shouldn't affect any tests, as the whole file will continue to be parsed. Should those files be updated, or are they fine as-is?

Rombur commented 1 year ago

Yes, please update all the files.

Rombur commented 1 year ago

Thanks for the fix!