Closed regro-cf-autotick-bot closed 4 years ago
Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe
) and found it was in an excellent condition.
Failing with:
=================================== FAILURES ===================================
____________________________ test_graphene_to_kwant ____________________________
def test_graphene_to_kwant():
norbs = OrderedDict([('A', 1), ('B', 1)]) # A and B atom per unit cell, one orbital each
hopping_vectors = [('A', 'B', [1, 0])] # Hopping between neighbouring A and B atoms
# Atomic coordinates within the unit cell
atom_coords = [(0, 0), (1, 0)]
# We set the interatom distance to 1, so the lattice vectors have length sqrt(3)
lat_vecs = [(3/2, np.sqrt(3)/2), (3/2, -np.sqrt(3)/2)]
# Time reversal
TR = PointGroupElement(sympy.eye(2), True, False, np.eye(2))
# Chiral symmetry
C = PointGroupElement(sympy.eye(2), False, True, np.array([[1, 0], [0, -1]]))
# Atom A rotates into A, B into B.
sphi = 2*sympy.pi/3
RC3 = sympy.Matrix([[sympy.cos(sphi), -sympy.sin(sphi)],
[sympy.sin(sphi), sympy.cos(sphi)]])
C3 = PointGroupElement(RC3, False, False, np.eye(2))
# Generate graphene Hamiltonian in Kwant from qsymm
symmetries = [C, TR, C3]
# Generate using a family
family = bloch_family(hopping_vectors, symmetries, norbs)
> syst_from_family = model_to_builder(family, norbs, lat_vecs, atom_coords, coeffs=None)
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/kwant/tests/test_qsymm.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/kwant/qsymm.py:343: in model_to_builder
sublattices, coords_dict)
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/kwant/qsymm.py:276: in term_hopping
hopping_dict[hop_dir] += Model({coeff: hop}, momenta=momenta)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = {c0:
[[1.+0.j]],
}, other = {}
def __radd__(self, other):
# Addition of monomials with other types.
# Useful for sum to work.
if isinstance(other, Number) and other == 0:
result = self.copy()
elif ((isinstance(other, self.format) and self.shape == other.shape)
or (isinstance(other, Number) and self.shape == ())):
# Addition of constants
result = self.copy()
result[1] += other
else:
> raise NotImplementedError('Addition of {} with {} not supported'.format(type(self), type(other)))
E NotImplementedError: Addition of <class 'qsymm.model.Model'> with <class 'dict'> not supported
@jbweston I forgot: would this be fixed by bumping the qsymm version?
@akhmerov yes, AFAICT
We should also fix this for all other released versions of Kwant
@conda-forge-admin please rerender
Due to the bot-rerun
label I'm closing this PR. I will make another one as appropriate. This was generated by https://circleci.com/gh/regro/circle_worker/13763
Due to the bot-rerun
label I'm closing this PR. I will make another one as appropriate. This was generated by https://circleci.com/gh/regro/circle_worker/13764
This PR has been triggered in an effort to update python38.
Notes and instructions for merging this PR:
This package has the following downstream children: discretizer And potentially more. If this PR was opened in error or needs to be updated please add the
bot-rerun
label to this PR. The bot will close this PR and schedule another one.This PR was created by the cf-regro-autotick-bot. The cf-regro-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. If you would like a local version of this bot, you might consider using rever. Rever is a tool for automating software releases and forms the backbone of the bot's conda-forge PRing capability. Rever is both conda (
conda install -c conda-forge rever
) and pip (pip install re-ver
) installable. Finally, feel free to drop us a line if there are any issues! This PR was generated by https://circleci.com/gh/regro/circle_worker/12056, please use this URL for debugging