Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up bot LUT #273

Merged
merged 7 commits into from
Nov 29, 2023
Merged

Clean up bot LUT #273

merged 7 commits into from
Nov 29, 2023

Conversation

casperlamboo
Copy link
Contributor

We had a lot of Look up Tables scattered around in the cura repository. This can be solved by adding a bot_id entry to metadata of the various makerbot extruders/materials/definitions

We had a lot of Look up Tables scattered around in the cura repository. This can be solved by adding a `bot_id` entry to metadata of the various makerbot extruders/materials/definitions
Copy link
Contributor

@pkuiper-ultimaker pkuiper-ultimaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of a <bot_id> in the fdmmaterial file feels like a hack.

ultimaker_rapidrinse_175.xml.fdm_material Outdated Show resolved Hide resolved
@@ -11,6 +11,7 @@ Generic ABS 1.75mm profile. The data in this file may not be correct for your sp
</name>
<GUID>2780b345-577b-4a24-a2c5-12e6aad3e690</GUID>
<version>11</version>
<bot_id>abs</bot_id>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A material is not a bot_id. This is very confusing, I also do not know why you need it. The GUID uniquely identifies the material to do a look up in a database.
Also when you would do this you also need to change the the fdmmaterial.xsd other wise digital factory throw an error.

Copy link
Contributor Author

@casperlamboo casperlamboo Nov 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bot_id is not a material, but I do consider it to be a property of the material. And that is what metadata is; it contains useful properties regarding the material.

The GUID uniquely identifies the material to do a look up in a database.

According to this logic we can also remove for instance the color attribute from the metadata; as each guid uniquely identifies a color just lookup the color each time you try to retrieve it.

@casperlamboo
Copy link
Contributor Author

casperlamboo commented Nov 24, 2023

@pkuiper-ultimaker you should see the PR in combination with this PR: Ultimaker/Cura#17422

By adding the bot type to the metadata we can completely remove all look up tables from the .makerbot writer, which I really like. And I do consider the "bot type" as it is known to the printer/digital factory to be an attribute of the materials, extruder, printer definition, and I do consider the metadata a quite logical place to add.

Why would you consider it to be a hack?

@pkuiper-ultimaker
Copy link
Contributor

pkuiper-ultimaker commented Nov 25, 2023 via email

@casperlamboo casperlamboo marked this pull request as ready for review November 29, 2023 11:30
Copy link
Member

@jellespijker jellespijker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@jellespijker jellespijker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure the CI/CD for our firmware friends can handle the change

@jellespijker jellespijker merged commit a2714e2 into master Nov 29, 2023
3 checks passed
@jellespijker jellespijker deleted the clean-up-bot-luts branch November 29, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants