Closed sofiasanz closed 2 years ago
Just an idea, you could let smooth
be a dict which contains the arguments for the function, then you don't need to think too much about additional parameters?
Just an idea, you could let
smooth
be a dict which contains the arguments for the function, then you don't need to think too much about additional parameters?
Yes I like it! You can see my implementation in commit cf3d5ec.
I see! Yes that is much better :-)
But if the user doesn't pass any arguments for smooth
then it assumes r=0
, no? And then it doesn't have the smoothing effect, no?
Otherwise it can just first check if the smooth
dictionary is empty or not.
But if the user doesn't pass any arguments for
smooth
then it assumesr=0
, no? And then it doesn't have the smoothing effect, no?
No, it will use the default values, https://zerothi.github.io/sisl/api/generated/sisl.Grid.html?highlight=smooth#sisl.Grid.smooth
Remember that kwargs for a zero length dict is effectively passing no arguments. I think it is safest to check whether the argument exist (checking the length would not allow users to use default values).
I see. Forgot to check which were the default values of the method. Thanks!
Remember that kwargs for a zero length dict is effectively passing no arguments. I think it is safest to check whether the argument exist (checking the length would not allow users to use default values).
I just saw again what you wrote in https://github.com/dipc-cc/hubbard/pull/123#commitcomment-69471285, didn't see the first line before hehe
Added possibility to smooth the real space grid with Gaussian smoothing for LDOS plots.