Comments (3)
Hi Miša
looks like a macos 10.10 problem, closing -- mttiw, more trouble than it's worth.
An unrelated question, model.hamiltonian
seems to be always np.float32
, is that intentional ?
It makes quite a difference, check |AV - VΛ|_max
from pybinding.
Hey Denis,
This indeed sounds like something that can be related to the scipy issue you pointed to. Do the suggestions in the comments help to resolve this issue?
The latest release was tested on macos 10.11, with different versions of python (3.6, 3.7, and 3.9).
What you could do is to take a look at the test configs on travis, and try to replicate the environment for example from this run. You can find more info about the scipy version bellow line 282.
conda install cmake numpy scipy matplotlib
in your goodinstall
doc
didn't help -- how does that differ from just
pip install numpy scipy matplotlib pybinding
?
the two would install packages from different repositories, so even if you would specify the same version, you would install a different package.
from pybinding.
Hi Denis,
By default the precision is float. If there are no modifiers that would require different type of Hamiltonian, it will stay like that (e.g. adding magnetic field will promote to complex).
On the other hand you can choose (force) higher precision by adding some of the predefined modifiers whose only purpose is to promote the precision. You can see more here
import pybinding as pb
from pybinding.repository import graphene
model_float = pb.Model(
graphene.monolayer_4atom(),
)
print(model_float.hamiltonian.dtype)
model_double = pb.Model(
graphene.monolayer_4atom(),
pb.force_double_precision()
)
print(model_double.hamiltonian.dtype)
from pybinding.
Related Issues (20)
- Bug in KPM method HOT 1
- (removed)
- The calc_conductivity in KPM takes in temperature as a number in the input variables
- Obtaining Atomic Basis Sets for Materials in Source Code HOT 2
- Small question about heatmap-plot of the eigenvalue. HOT 2
- can not install on windows HOT 5
- Addition of Hermitian conjugate HOT 1
- how to use Polygon.contains ? HOT 4
- installation with pip fails HOT 4
- pybinding returns an error for a 1D lattice defined by the book (literally) HOT 1
- Non-hermitian matrix HOT 2
- Pip installation fails on windows HOT 3
- ERROR: Failed building wheel for pybinding HOT 2
- pybinding can not run on MAC with M3 chip. HOT 4
- Modifying specific hoppings HOT 4
- calculation of band structure in the presence of magnetic field HOT 2
- Translational symmetry with generator defined hoppings HOT 1
- Is it possible to write the Hamiltonian into wannier90 format? HOT 3
- Difficulty installing locally (windows 11 & wsl) HOT 3
- What does `translational_symmetry` actually perform? HOT 4
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 pybinding.