Skip to content

Commit

Permalink
795 conda env python3 10 using updated tag from pyepr (#796)
Browse files Browse the repository at this point in the history
* Callable from collections is depreicated for python 3.10 so need to use collections.abc.

* Add new tag for pyepr.

* Update tags for new Metal pypi release.

* Wait until Samarth s pull request is merged.

* To make run_all_tests to pass.  @GyeongHun had the fix.

* Use later tag.
  • Loading branch information
priti-ashvin-shah-ibm authored Jun 1, 2022
1 parent a13374a commit b4ab51e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- numpy
- pandas
- pint
- pyepr-quantum>=0.8.5.3
- pyepr-quantum>=0.8.5.5
- pygments
- pyside2
- qutip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
import inspect
import os
import random
from collections import OrderedDict, Callable
from collections import OrderedDict
from collections.abc import Callable
from inspect import signature
from pathlib import Path
from typing import TYPE_CHECKING, Union, Type
Expand Down Expand Up @@ -132,7 +133,7 @@ def entry_exception_pop_up_warning(cls, func: Callable):
Args:
func (Callable): current function causing exceptions - should be ONLY qcpe instance methods
because decoraters
because decorators
assumes arg[0] is a self who has a valid logger
"""
Expand Down Expand Up @@ -287,7 +288,7 @@ def add_k_v_row(self):

@QComponentParameterEntryExceptionDecorators.entry_exception_pop_up_warning
def add_k_dict_row(self):
""" Add key, dictionary-value to parent row based on what row is highlighed in treeview"""
""" Add key, dictionary-value to parent row based on what row is highlighted in treeview"""
cur_index = self.ui.qcomponent_param_tree_view.currentIndex()

fake_dict = "fake-dict"
Expand Down
2 changes: 1 addition & 1 deletion qiskit_metal/tests/test_analyses_2_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def test_analyses_lumped_df_reorder_matrix_basis(self):
def test_analyses_hamiltonian_ho_wavefunction(self):
"""Test the wavefunction function in the HO_waefunction.py file."""
x_range = np.linspace(-5, 5, 5)
actual = wavefunction(1.0, 1.0, 0.0, x_range)
actual = wavefunction(1.0, 1.0, 0, x_range)

expected = [
2.10255658e-06, 2.47888124e-02, 5.64189584e-01, 2.47888124e-02,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ matplotlib
numpy
pandas
pint
pyEPR-quantum>=0.8.5.3
pyEPR-quantum>=0.8.5.5
pygments
pyside2
qutip
Expand Down

0 comments on commit b4ab51e

Please sign in to comment.