Code Monkey home page Code Monkey logo

Comments (5)

wolfgangr avatar wolfgangr commented on July 21, 2024

assume the project is orphaned?
forked it and will give it a try:
https://github.com/wolfgangr/FCSpreadsheetTools

If anybody else is working on it, please lets get in contact to avoid redundant work.

from fcspreadsheettools.

HoWilgh avatar HoWilgh commented on July 21, 2024

@wolfgangr, no I did not use it for years.
Cool if you can use it and if it is only the one Python2 / Python3 compatibility issue

from fcspreadsheettools.

wolfgangr avatar wolfgangr commented on July 21, 2024

Hi, Wilfried,

nice to find you alive and in healthy condition, obvioulsy ;-)

Well, yes, there seems to be more to it than just changing "xrange" to "range".
Following python doc, this should be a straightforward no-brainer.

now I get

...~/.local/share/FreeCAD/Macro/SpreadsheetTools.FCMacro", line 269, in paste_from_clipboard
      for n_line, line in zip(range(n_cells), cbtext_split[0:n_cells]):
  TypeError: 'float' object cannot be interpreted as an integer

I think that that in the process of merging @realthunder 's "Link fork", spreadsheet enjoyed a huge progress in functionality, which, of course might trigger regression bugs.

I'll go and try to understand your code now...

from fcspreadsheettools.

wolfgangr avatar wolfgangr commented on July 21, 2024

I think that shit happens somewhere between line 257 and 337 - where the paste is going on.

after fixing the xrange issue, I get (sometimes)

...~/FreeCAD/Macro/SpreadsheetTools.FCMacro", line 269, in paste_from_clipboard
      for n_line, line in zip(range(n_cells), cbtext_split[0:n_cells]):
  TypeError: 'float' object cannot be interpreted as an integer

from the code lines before (well, I'm no python crack at all ...) I can't imagine where a float could arise.

other times (may be when there are no numbers in the source selection?)
I get pasted the format string as in the clipboard 4 cells below the actual selected paste area.

Looks like I have to learn debugging FreeCAD python macros to see what's going on....

from fcspreadsheettools.

wolfgangr avatar wolfgangr commented on July 21, 2024

OK, after gleaning over the code, I see that simple replacement of xrangeto range might have restored some of it's previous behaviour.

It is in "works for me" condition and looks like it does what I want, if I carefully play with the tickmarks.

I think to keep it as part of "1.0", some investment into the maturity of the code might be fine.
Any need for that? If not, I'll leave it for now.

from fcspreadsheettools.

Related Issues (1)

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.