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

Issues when adding new configurations #9

Open
eduvillasr opened this issue Jun 10, 2021 · 0 comments
Open

Issues when adding new configurations #9

eduvillasr opened this issue Jun 10, 2021 · 0 comments

Comments

@eduvillasr
Copy link

eduvillasr commented Jun 10, 2021

Thank you so much for this great library! I have been trying to add a power configuration named "power" in order to use it with my machine. However, I keep getting the following error:

C:\Users\edujo\Research>mandoline -S power=350 -w
Loading configs from C:\Users\edujo\AppData\Local\Mandoline\Mandoline
Ignoring unknown config option: power
Saving configs to C:\Users\edujo\AppData\Local\Mandoline\Mandoline

I have already added the configuration into the dictionary in the slicer.py file as well as saved it as "power=350.0" in the txt file.

Here is the configuration in the dictionary:

('power', float, 350., (100., 500.), "Power (mm/s)"),


If possible, I would also love to get some help with the function of the configuration. I need it to display S2 = 350 (or whatever value) in the gcode it is outputting. This is the function that I created for it:

def power(self, filename):
    power = self.conf['power']
    power = 'S2='+power
    with open(filename, "w") as f:
        f.write(power)

Thank you so much for your help!

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

No branches or pull requests

1 participant