Git Product home page Git Product logo

Comments (15)

pfebrer avatar pfebrer commented on July 28, 2024

I always use the dq column, so not changing it to de would be more convenient to me 😅

However, I'm not sure it makes sense to use q, since it will always be negative.

from sisl.

zerothi avatar zerothi commented on July 28, 2024

Well, I think we need to discern this.

Currently, my understanding of the output is actually that dq is de, i.e. it is in units of electrons. Hence, for correctness one should actually return -dq. So we are now left with a double problem ;)

from sisl.

ahkole avatar ahkole commented on July 28, 2024

Currently, my understanding of the output is actually that dq is de, i.e. it is in units of electrons.

Are you sure about this? The first few lines of the parsed Hirshfeld charges from one of my calculations is,

 	dq              e 	          S 	          Sx 	          Sy 	   Sz
atom 						
0 	0.46978 	13.53022 	2.96865 	2.96865 	-0.0 	-0.00000
1 	0.46978 	13.53022 	2.96865 	2.96865 	-0.0 	-0.00000
2 	-0.15659 	7.15659 	0.01046 	0.01046 	-0.0 	0.00007

From this it seems like dq assigns a negative charge to excess electrons, so then it would actually be -de right?

from sisl.

zerothi avatar zerothi commented on July 28, 2024

Yes, for Hirshfeld and Voronoi, these things got cleaned up. But I think for TS and Mulliken, this is not the case. I might be forgetting here.. But it would be nice to not get into problems here :)

from sisl.

ahkole avatar ahkole commented on July 28, 2024

If we had to decide to choose either dq + q or de + e then I would prefer to talk about occupations rather than charge, such that excess electrons would be positive and deficit of electrons would be negative (so de + e). This does go against @pfebrer 's preferences though. And if we're changing things I would actually prefer to use n and dn to talk about occupations/populations because I feel e could also be confused with the electron charge constant.

from sisl.

zerothi avatar zerothi commented on July 28, 2024

What about having both for some time?

from sisl.

ahkole avatar ahkole commented on July 28, 2024

Would also be fine for me.

from sisl.

pfebrer avatar pfebrer commented on July 28, 2024

If we had to decide to choose either dq + q or de + e then I would prefer to talk about occupations rather than charge, such that excess electrons would be positive and deficit of electrons would be negative (so de + e). This does go against @pfebrer 's preferences though. And if we're changing things I would actually prefer to use n and dn to talk about occupations/populations because I feel e could also be confused with the electron charge constant.

Isn't it electrons that we are talking about here? Occupancy could be occupancy of anything 😅 I think "e" is clearer than "n".

What about having both for some time?

I think this would be a bad idea unless one of them is lazily computed. But for that we would need to subclass DataFrame. I think it is better to just choose one and stick with it, whichever it is. There are many parts of sisl where the API is not stable yet for good reason, but I think this one is not a good reason to purposely break future compatibility 😅

from sisl.

ahkole avatar ahkole commented on July 28, 2024

Isn't it electrons that we are talking about here? Occupancy could be occupancy of anything 😅 I think "e" is clearer than "n".

Fair point. Still I feel like using e could be prone to confusion. I think the least confusing single letter header would be q, but then you would always have negative charges of atoms.

from sisl.

zerothi avatar zerothi commented on July 28, 2024

fair points all. :)

from sisl.

zerothi avatar zerothi commented on July 28, 2024

Ok, so we stick with dq meaning the charge on atoms.
A deficit of electrons is a positive dq.
A surplus of electrons is a negative dq.

Lets stick with that. :)

from sisl.

pfebrer avatar pfebrer commented on July 28, 2024

And what about e? I mean do we also keep it?

from sisl.

zerothi avatar zerothi commented on July 28, 2024

Yes, lets keep it. :)

from sisl.

pfebrer avatar pfebrer commented on July 28, 2024

Ok, so this issue is the identity operator 😄

from sisl.

zerothi avatar zerothi commented on July 28, 2024

ha :) true :)

from sisl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.