Coder Social home page Coder Social logo

Comments (4)

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Problem is due to removed file arc/data/precalculated_stark.db in commit 2ae9015 . This impacts only Stark map calculations.
This file should be included in distribution for performance, and will be in future. However, even when it's not included, it should be created new correctly. I am looking now why is this not the case.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

pypi package version 1.4.3 fixes temporarily this bug by including the required databases. To apply this fix do
rm -rf ~/.arc-data
pip install ARC-Alkali-Rydberg-Calculator --upgrade --no-cache-dir

I am working to figure out what is causing the underlying problem of not generating this database elements correctly if they are not provided.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Underlying reason has to do with differences between Python 3 and Python 2. Under Python 2.7 new arc/data/precalculated_stark.db is created with correct values. But under Python 3 something is miscalculated. I am guessing it has to do with different treatment of float/int. Looking into more details now.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Problem was different behaviour of round function when rounding half-integers in Python 2 and Python 3. See for example this. This was causing problems in retriving memorized precalculated Winger3j in arc/wigner.py module, since round function was used for obtaining matrix index precisely for half integer values of j. Problem resulted in incorrect results under Python 3 (Python 2 was fine). This was resolved in eec2918 through introduction of roundPy2 function that has same rounding behaviour both in Python 2 and Python 3.

Bug could affect calculations under Python 3. The updated pip package version 1.4.5. fixes this, and it's available for download now. You can apply the update by:
rm -rf ~/.arc-data
pip install ARC-Alkali-Rydberg-Calculator --upgrade --no-cache-dir

This should install new version (1.4.5 or higher) of package under Linux, Windows and Mac. (NOTE: first line is for removing hidden data folder cache stored in user's home directory. Under Windows it might be different command)

from arc-alkali-rydberg-calculator.

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.