Comments (5)
Hi @ranfinkelstein . I tried running
from arc import *
atom=Rubidium87()
atom.getStateLifetime(28,3,3.5)
and I get
1.5111533894283968e-05
It might be that you hit bug described recently (#39 ), which messed up your local cache, or you interrupted calculation in some unfortunate way, which messed up cache too. So I would try to do following two things:
- make sure installation updated by running
pip install ARC-Alkali-Rydberg-Calculator --upgrade --no-cache-dir
- then clear local cache directory which is hidden directory in your home folder under name
.arc-data
. You can just delete that folder, and next time when you import arc fresh cache will be created.
If this doesn't solve your problem please let me know which OS and Python version you use, and do you run Python from some environment (like Spyder) or just plain command line or Jupyter notebook. Of course, if this solves problem, let me know then too.
If any other problems persist, please provide some code example, and I can give advice, or, in case it's some bug, provide fix.
from arc-alkali-rydberg-calculator.
Hi @nikolasibalic , thanks a lot for the prompt response.
I've uninstalled and reinstalled ARC and deleted the .arc-data
folder, but still this command collapses python, although for different Rydberg states it works fine.
I have also reinstalled Python.
I am working in Win7, Python 3.8 (32-bit, maybe should install 64-bit like my OS), and running these commands either through Jupyter lab or through the command window.
It could be that I need to reinstall again everything from scratch.
from arc-alkali-rydberg-calculator.
Explanation: The problem occurs because latest release of Python 3.8 was not yet supported by package. Whenever new Python is released for Windows it requires manual addition in the build system on my side 7c6909b, and I was bit late with that as Python 3.8 is still fresh. Sorry for this. That explains behaviour you described: you were able to run calculations whenever used dipole matrix elements were reused from cache, but the program was crashing whenever it tried to call dipole matrix element calculation for new state combinations, because that part was missing from package for your version of Python.
Solution: You do not need to reinstall Python on your side. I have just released added packages for both 32 and 64bit Python 3.8 under Windows that you can get with
pip install ARC-Alkali-Rydberg-Calculator --upgrade --no-cache-dir
It should work then with your current version of Python. Let me know.
If not, I would recommend installing Python from Anaconda distribution, that is available here. Latest version there is Python 3.7 currently. That should work bit better and faster since that bundle is optimised for scientific calculations (it uses good backend libraries for numerics). And I would recommend using 64-bit version if you are on 64-bit machine. After removing installation of old Python 3.8, installation of Anaconda distribution of Python 3.7, you need just to run above mentioned command to get ARC to get for Python 3.7.
If even that doesn't work, please tell me! :)
from arc-alkali-rydberg-calculator.
Hi @ranfinkelstein , I just want to check if the problem is solved (if I can close this issue now)?
from arc-alkali-rydberg-calculator.
Hi @nikolasibalic ,
I am in the process of resinstalling Python, but haven't tested this yet.
I think you can close the issue and if something still goes wrong I'll let you know.
Thanks again
Ran
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.