Giter Club home page Giter Club logo

gcode-reader's People

Contributors

zhangyaqi1989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcode-reader's Issues

cannot output specific layer

When I am trying to plot a single layer, using the exact same line of code as provided by the author, it is somehow showing only a red picture. I typed the coding in Visual Studio Code as below:

import os
os.system('py gcode_reader.py -t 1 octo.gcode -l 1')

However, the output is as below:
a
It is the same no matter which layer I specified. The output is the same as above even if I changed to the 40th layer.

What may be wrong? I would appreciate any help.

Fails with runtime error when reading any gcode file

'''
$ python3 src/gcode_reader.py -t1 gcode/lpbf/A4_Square_Concentric.gcode
'''
expected output was something visual but got an IndexError
'''
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
'''
Running python 3.10 on ubuntu.

License ?

Hello, under what license is this project released under ? Thank-you.

Error when trying to plot a file

`
Gcode Reader

  1. Line segments information:
    count 33292.000000
    mean 2.425849
    std 9.927422
    min 0.020000
    25% 0.329844
    50% 0.420001
    75% 0.604308
    max 90.112000
    dtype: float64
  2. Number of layers: 207
    Traceback (most recent call last):
    File "gcode_reader.py", line 1001, in
    command_line_runner()
    File "gcode_reader.py", line 935, in command_line_runner
    gcode_reader.describe()
    File "gcode_reader.py", line 800, in describe
    df = pd.DataFrame(data)
    File "/usr/lib/python3.8/site-packages/pandas/core/frame.py", line 435, in init
    mgr = init_dict(data, index, columns, dtype=dtype)
    File "/usr/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 254, in init_dict
    return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
    File "/usr/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 64, in arrays_to_mgr
    index = extract_index(arrays)
    File "/usr/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 365, in extract_index
    raise ValueError("arrays must all be same length")
    ValueError: arrays must all be same length

`

with your code latticebunny it works, but with latticebunyy-50 this error are raised:

`
Gcode Reader
gcode_reader.py:786: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
series = pd.Series(self.lengths)

  1. Line segments information:
    count 0.0
    mean NaN
    std NaN
    min NaN
    25% NaN
    50% NaN
    75% NaN
    max NaN
    dtype: float64
  2. Number of layers: 0
    Traceback (most recent call last):
    File "gcode_reader.py", line 1001, in
    command_line_runner()
    File "gcode_reader.py", line 935, in command_line_runner
    gcode_reader.describe()
    File "gcode_reader.py", line 791, in describe
    self._compute_subpaths()
    File "gcode_reader.py", line 507, in _compute_subpaths
    x0, y0, x1, y1, z = self.segs[0, :]
    IndexError: too many indices for array

`

I'm using artix linux (arch linux)

Regards

Carlo D.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.