GithubHelp home page GithubHelp logo

Comments (3)

mishinma avatar mishinma commented on July 21, 2024

@yeganer Hm, I didn't encounter that error and I am not sure where the root of the problem is. The levels query was tested io/tests/test_output (on test data). Creating HDFStores from the database took a while (about 20 mins) but was working.

What do you mean by "the list of selected levels"? For the output you can select atoms with selected_atoms and chianti ions with chianti_ions. What do you provide for this variables? I can try to reproduce the error.

from carsus.

yeganer avatar yeganer commented on July 21, 2024

I used selected_atoms='H-Zn' and chianti_ions=H-He. Basically the settings from the two scripts in carsus-db/scripts.

The root of the problem is the Line.lower_level_id.in_(...) operation which checks against a list of ~50 000 Levels. This are too many Parameters for pysqlite (apparently the allow 999) causing the query to fail.

Yesterday, with the help of @wkerzendorf I found the solution to this problem by doing a join instead of in_. And I'm currently in the progress of updating the relevant parts of code to use mostly SQL syntax instead of pandas magic.

from carsus.

mishinma avatar mishinma commented on July 21, 2024

Good finding! It's strange that I didn't get the error though, because I used the same settings. But yeah, doing a join is much better.

I think doing things in SQL is a very good idea. I was a bit afraid to do it all in SQL from scratch.

from carsus.

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.