Comments (4)
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.
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.
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.
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)
- AC Stark Maps HOT 4
- getRadialMatrixElement() may return wrong results for float input parameters
- Add helper function to clarify citations
- Add flake8 linter and black formatter in CI checks
- Missing magic wavelength snippet in docs HOT 1
- AttributeError: module 'numpy' has no attribute 'int'. HOT 2
- Quantum defect for G9/2 states in Caesium return 0 HOT 2
- MacOS Errno 66 on pip install HOT 1
- Cs NIST level data do not match current NIST values HOT 1
- Two graphs plotted in plot2D function HOT 1
- Intensity Calculation: Is "wa" is a beam radius or beam diameter? HOT 2
- Wigner 6j for non-integer sum triads HOT 1
- Breit Rabi isn't outputting the right F and mf states HOT 2
- pull request 155 (approved) did not update `arc.alkali_atom_functions.__arc_data_version__` HOT 1
- Loading atom parameters doesn't work HOT 3
- Transition frequency mismatch of Rb87 D2 line HOT 1
- Code crashes with "interactionsUpTo=2" HOT 4
- Modernizing and extending the build backend HOT 1
- ImportError: numpy.core.multiarray failed to import HOT 1
- Something wrong in calculations_atom_single.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arc-alkali-rydberg-calculator.