Comments (6)
Looks like it was removed in 2.9 but not from the docs.
This is 2.8
from linuxcnc.
A pull request is pending to fix the documentation:
#2789
from linuxcnc.
Seems the function should be fixed as there is no replacement for it.
from linuxcnc.
Seems the function should be fixed as there is no replacement for it.
We have already had this discussion on the pull request page, I don't understand why you keep insisting on putting the axes attribute back in the status channel when one line of python code will give you what you want:
number_of_axes = (s.axis_mask).bit_count()
from linuxcnc.
Because who in the world would know how to do that? You sure, 99% of the rest of us it's more usable to just use s.axes. I don't understand why it was removed being such a nice thing to have. I also don't understand your opposition to having the axes stat...
from linuxcnc.
The point is that all these attributes have to be sent on every single poll of the status channel. It's simply inefficient to send the same information twice.
I'm not a programmer. There is no shame in not knowing all the functions python has to offer, I also did not know to do it until I tried to help you with your issue. It took me maybe 15 minutes of online research to figure out how to do it. I even went through the trouble of trying it out and posting my findings for you and others. Yet all I got is you ranting about wanting it the old way.
I just find it surprising that somebody who is obviously clever enough to have used linuxcnc and it's python interface for years would spend that much time and energy to have redundant information put back in the code.
Clearly it would have taken less effort to create a pull request to update the 'python-interface.adoc' on how to use .bit_count to extract the information from the 'axis_mask' attribute.
And with this I rest my case.
from linuxcnc.
Related Issues (20)
- error in halui docs HOT 4
- Mesa Encoder is latching quad errors when quad-error-enable is FALSE. HOT 6
- Hostmot2 HOT 3
- carousel.comp jog problem HOT 16
- Python Interface Returns Wrong State HOT 4
- HAL Python module Examples Fail to Work HOT 13
- Typo regarding "G52", "G92" and DISABLE_G92_PERSISTENCE HOT 3
- Clean up Stale Branches HOT 20
- pncconf default firmware choice for 7I96S confuses newbees. HOT 3
- Program abort hides active G52/G92 from DRO HOT 11
- Linear A and B axis jog according to Angular velocity when defined in display section and using GMOCCAPY HOT 4
- Unexpected error during probing - Probe tripped during non-probe move HOT 6
- hal_gpio doesn't load if I have "inputs=" as parameter. HOT 1
- G71 introduces a circle when using the D parameter (remaining distance to stock) HOT 2
- parameter R in cycle g81-g82 ecc, in lathe not respect diametral position, only radial position in g19 plane HOT 3
- Feature Request: Add MAX RPM to Tool table. HOT 2
- Message: "Ignoring task mode change while jogging"
- /tests/abort/g64/test.ini is not working well.
- EMC_MDIhistory does not respect the requirement of the NIST standard HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linuxcnc.