Skip to content

Fixed issue with inhomogeneous shape when plotting frequency's after using MEASURE_LINEAR_VIBRATIONS_RANGE#32

Open
WatchingWatches wants to merge 4 commits into
worksasintended:mainfrom
WatchingWatches:main
Open

Fixed issue with inhomogeneous shape when plotting frequency's after using MEASURE_LINEAR_VIBRATIONS_RANGE#32
WatchingWatches wants to merge 4 commits into
worksasintended:mainfrom
WatchingWatches:main

Conversation

@WatchingWatches

Copy link
Copy Markdown

When i used the MEASURE_LINEAR_VIBRATIONS_RANGE command i got the error:
"ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (21, 3) + inhomogeneous part."
I was able to fix this by adding dtype=object to data = np.array(data, dtype=object). It's most likely related to the numpy version (mine is 1.26.0).

I've also added a example config, so the command can be accessed via klipper macros.

Thank you for sharing this project. It's very useful to find good printing speeds and should be way more popular.

I might also add an csv file output (also issue #31) to create a plot, which adds all of the vibrations of all axes to find the perfect printing speed.

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.

1 participant