Mesa Confguration Tool Update

More
29 Sep 2022 11:33 #253022 by HansU
Replied by HansU on topic Mesa Confguration Tool Update

I'm working on a bug that if a comment is on the line before a section the rest of the comments get out of place because the configparser puts a blank line before each section and that throws the position off for following comments.

And also the parser fails loading when there is no blank line before a section.

Boolean values can be any of 1, true, True, yes, Yes or 0, false, False, no, No even though the docs fail to mention that.

Maybe I should extend the docs concerning this.

The configuration tool will now load any valid boolean value for a checkbox but will write back True/False because that is the value returned from .isChecked().

Great!

MIN_VELOCITY and MIN_LINEAR_VELOCITY were introduced in EMC 2.3 and I've not heard of anyone wanting to depreciate MIN_VELOCITY. Having said that MIN_LINEAR_VELOCITY is more descriptive of what the key is.

But they mean exactly the same, right?
It sounds that MIN_VELOCITY could be valid both for MIN_ANGULAR_VELOCITY and MIN_LINEAR_VELOCITY even though this makes not much sense.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
29 Sep 2022 21:24 #253052 by JT
Replied by JT on topic Mesa Confguration Tool Update

I'm working on a bug that if a comment is on the line before a section the rest of the comments get out of place because the configparser puts a blank line before each section and that throws the position off for following comments.

And also the parser fails loading when there is no blank line before a section.

Boolean values can be any of 1, true, True, yes, Yes or 0, false, False, no, No even though the docs fail to mention that.

Maybe I should extend the docs concerning this.

The configuration tool will now load any valid boolean value for a checkbox but will write back True/False because that is the value returned from .isChecked().

Great!

MIN_VELOCITY and MIN_LINEAR_VELOCITY were introduced in EMC 2.3 and I've not heard of anyone wanting to depreciate MIN_VELOCITY. Having said that MIN_LINEAR_VELOCITY is more descriptive of what the key is.

But they mean exactly the same, right?
It sounds that MIN_VELOCITY could be valid both for MIN_ANGULAR_VELOCITY and MIN_LINEAR_VELOCITY even though this makes not much sense.

Thanks, I'll check on the parser with no blank line in between a section end and start.

AFAIK MIN_VELOCITY and MIN_LINEAR_VELOCITY are the same thing, but I've not looked at the code to find out.

The best is a short bit on valid boolean values for the ini file and have each ini item that expects a boolean to just say boolean with a link to valid booleans perhaps.

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
30 Sep 2022 10:57 #253085 by JT
Replied by JT on topic Mesa Confguration Tool Update

I'm working on a bug that if a comment is on the line before a section the rest of the comments get out of place because the configparser puts a blank line before each section and that throws the position off for following comments.

And also the parser fails loading when there is no blank line before a section.
 

I can't reproduce that here...

JT

Please Log in or Create an account to join the conversation.

More
01 Oct 2022 17:47 #253193 by HansU
Replied by HansU on topic Mesa Confguration Tool Update
on build config in ini2 branch:
File buildini.py line 28, in function get_sections
Error: [Errno 2] No such file or directory: '.ini'
["FileNotFoundError: [Errno 2] No such file or directory: '.ini'\n"]
 

Please Log in or Create an account to join the conversation.

More
01 Oct 2022 17:59 #253194 by HansU
Replied by HansU on topic Mesa Confguration Tool Update

AFAIK MIN_VELOCITY and MIN_LINEAR_VELOCITY are the same thing, but I've not looked at the code to find out.


MIN_VELOCITY is only possible in axis as alternative to MIN_LINEAR_VELOCITY.

And it is valid  in the SPINDLE_<N> section.

So almost everywhere is MIN_LINEAR_VELOCITY used (29 hits compared to 9 where 4 of them are related to sthe SPINDLE_<N> section). so I would suggest to change that
The following user(s) said Thank You: JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
01 Oct 2022 22:06 #253203 by JT
Replied by JT on topic Mesa Confguration Tool Update

on build config in ini2 branch:
File buildini.py line 28, in function get_sections
Error: [Errno 2] No such file or directory: '.ini'
["FileNotFoundError: [Errno 2] No such file or directory: '.ini'\n"]
 
 

I stopped  working on ini2 when I could not get satisfactory results from the python configparser. I've written test code that updates the ini file without using configparser and does not change anything except those key value pairs used by mesact. I'm putting that code in ini3 branch. However the team at pyqt has broken python3-pyqt5 in debian 13 so I can't test the tool until they repair it and I can install it again... I did an update and didn't pay attention that it was removing python3-pyqt5!

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
02 Oct 2022 13:23 - 02 Oct 2022 13:44 #253250 by JT
Replied by JT on topic Mesa Confguration Tool Update


AFAIK MIN_VELOCITY and MIN_LINEAR_VELOCITY are the same thing, but I've not looked at the code to find out.


MIN_VELOCITY is only possible in axis as alternative to MIN_LINEAR_VELOCITY.

And it is valid  in the SPINDLE_<N> section.

So almost everywhere is MIN_LINEAR_VELOCITY used (29 hits compared to 9 where 4 of them are related to the SPINDLE_<N> section). so I would suggest to change that


I changed that a while back when you first mentioned it.

Hmm looks like I was on the ini2 branch when I changed it...

JT
Last edit: 02 Oct 2022 13:44 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
02 Oct 2022 13:24 #253251 by JT
Replied by JT on topic Mesa Confguration Tool Update
Work on the ini3 branch is coming along very good, I have all the details worked out just need to complete all the ini sections in the updateini.py file.

JT
The following user(s) said Thank You: HansU, smc.collins, rdtsc

Please Log in or Create an account to join the conversation.

More
19 Oct 2022 20:32 #254557 by rdtsc
Replied by rdtsc on topic Mesa Confguration Tool Update
Just a heads-up JT, there appear to be two indexes to the mesact docs:
gnipsel.com/mesa/mesact/index.html Sphinx 3.4.3
gnipsel.com/linuxcnc/mesact/index.html Sphinx 4.5.0
Looks like Sphinx decided new version = new folder?
The following user(s) said Thank You: JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
22 Oct 2022 22:44 #254806 by JT
Replied by JT on topic Mesa Confguration Tool Update
gnipsel.com/mesa/mesact/index.html is the old location for the Mesa Configuration Tool. I need to remove it...

JT

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.165 seconds
Powered by Kunena Forum