Coder Social home page Coder Social logo

Comments (4)

winedarksea avatar winedarksea commented on August 19, 2024 1

Thanks for being a relay here for the information. I do use json.dumps and loads in the proper import_template and export_template commands but general.py is a legacy thing, used to be a json file. I have added a more exacting unittest so that should catch future problems here.

from autots.

rasjani avatar rasjani commented on August 19, 2024

Also lines https://github.com/winedarksea/AutoTS/blame/7a843d050f62c1b4046c0b08020838e8eb95388a/autots/templates/general.py#L472

and https://github.com/winedarksea/AutoTS/blame/7a843d050f62c1b4046c0b08020838e8eb95388a/autots/templates/general.py#L473

look like they will not work as they are now written.

from autots.

winedarksea avatar winedarksea commented on August 19, 2024

@rasjani Thanks for noticing this, fixed now! 08c1d9a

from autots.

rasjani avatar rasjani commented on August 19, 2024

I have no skin in this game, i came to file this bug report from stackoverflow[0] when someone asked about this issue. However, i want to ask a question; why wont you just use python dicts in autots/templates/general.py and if you need to store those as json in to the dataframe, use json.dumps() instead of json.loads() ? That way you actually get proper error detection and valid json without doing bunch of string escaping that leads to errors like this ?

[0] - https://stackoverflow.com/questions/78470381/why-do-i-get-jsondecodeerror-extra-data-line-1-column-4-char-3

from autots.

Related Issues (20)

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.