Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry.lock: update dependencies #56

Merged
merged 5 commits into from Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Install poetry
run: |
python -m pip install poetry==1.1.12
python -m pip install poetry==1.3.2

- name: Build wheel
run: poetry build -f wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: actions/checkout@v2

- name: Install poetry
run: python -m pip install poetry==1.1.12 poethepoet==0.10.0
run: python -m pip install poetry==1.3.2 poethepoet==0.10.0

- name: Install dependencies
run: poetry install
Expand Down
4 changes: 2 additions & 2 deletions atomic_physics/common.py
Expand Up @@ -268,7 +268,7 @@ def I0(self, transition: Transition):
trans = self.transitions[transition]
omega = trans.freq
Gamma = self.GammaJ[self.levels[trans.upper]._start_ind]
return consts.hbar * (omega ** 3) * Gamma / (6 * np.pi * (consts.c ** 2))
return consts.hbar * (omega**3) * Gamma / (6 * np.pi * (consts.c**2))

def P0(self, transition: Transition, w0: float):
"""Returns the power needed at the focus of a Guassian beam with waist
Expand All @@ -279,7 +279,7 @@ def P0(self, transition: Transition, w0: float):
:return: beam power (W)
"""
I0 = self.I0(transition)
return 0.5 * np.pi * (w0 ** 2) * I0
return 0.5 * np.pi * (w0**2) * I0

def _sort_levels(self):
"""Use the transition data to sort the atomic levels in order of
Expand Down
2 changes: 1 addition & 1 deletion atomic_physics/tests/test_rates.py
Expand Up @@ -78,7 +78,7 @@ def test_steady_state_detuning(self):
# detuning scan relative to linewidth
norm_detuning = [-1e4, 2.3e1, 2, -4, 0.5, 0]
for det in norm_detuning:
I_eff = 1 / (4 * det ** 2 + 1)
I_eff = 1 / (4 * det**2 + 1)
Np_ss = _steady_state_population(I_eff)

Lasers = [ap.Laser("393", q=+1, I=1.0, delta=delta + line_width * det)]
Expand Down
2 changes: 1 addition & 1 deletion atomic_physics/utils.py
Expand Up @@ -117,5 +117,5 @@ def ac_zeeman_shift(atom: ap.Atom, state: int, f_RF: float):
for _state in np.argwhere(M[state] == Mpr):
freq = E[_state] - E[state]
w = rabi[state, _state][0]
acz[q + 1] += 0.5 * w ** 2 * (freq / (freq ** 2 - (f_RF) ** 2))
acz[q + 1] += 0.5 * w**2 * (freq / (freq**2 - (f_RF) ** 2))
return acz
973 changes: 551 additions & 422 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -13,7 +13,7 @@ scipy = "^1.7.3"
pytest = "^6.2.5"
poethepoet = "^0.12.1"
sympy = "^1.9"
black = "^21.12b0"
black = "^22.3.0"
flake8 = "^4.0.1"
matplotlib = "^3.5.1"

Expand Down