Comments (4)
just put z=y*0
;)
from pybinding.
it seems that you need z
argument to make it work even though I don't make use of z
since this is 2d
from pybinding.
Hi Yang,
In Python, you can set the specific variable of a function by function(var1=1.)
. If you leave out a variable in a function that has a default variable in the definition (for example def function(var1, var2=0.)
and only calling function(var1=1)
it will automatically set var2=0.
.
On the API for the shape.contains I can see that there isn't a default value for the z-component. I'll maybe add this as zero in a next release. So, for now, just add something in the z-component.
Best
Bert
from pybinding.
Hi Yang, In Python, you can set the specific variable of a function by
function(var1=1.)
. If you leave out a variable in a function that has a default variable in the definition (for exampledef function(var1, var2=0.)
and only callingfunction(var1=1)
it will automatically setvar2=0.
. On the API for the shape.contains I can see that there isn't a default value for the z-component. I'll maybe add this as zero in a next release. So, for now, just add something in the z-component. Best Bert
but we don't know how long the zero array should be, so we really can not set a default value for this kind of parameter? maybe address it in the API documentation is nice
from pybinding.
Related Issues (20)
- Problem with attaching leads to bilayer graphene HOT 3
- Fermi surface plotting HOT 2
- Divacancy in random HOT 2
- Random Disorder in multiorbital model HOT 1
- update PyBind11-version
- 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
- 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
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.