teoguso / sf Goto Github PK
View Code? Open in Web Editor NEWScientific package for spectral function calculations
Scientific package for spectral function calculations
### Spectral Function package ### Written by Matteo Guzzo ### NO WARRANTY WHATSOEVER!!! ### Written for python 2.7 ### Requires scitools, numpy, matplotlib, ### f2py, gfortran ### Tested on Ubuntu 12.04 ################################################# Before using the program, one should execute the bash script 'compile_and_link.sh'. The script 'cleanup.sh' removes all secondary files created during compilation, linking and testing, reverting to a clean source (a.k.a. poor's man 'make distclean'). - Conda installation file - Check py2_sf.yml for a comprehensive (and possibly redundant) list of required packages. This list can be used with the conda package manager to obtain a functioning python 2 installation. -- QUICK HOWTO -- Gather your input files (self-energy, invar.in, ...) -- look in the test directory for examples -- in a single directory and run 'sf.py' from there.
When I use the attached file as inputs in numint2 repo, it report an error as
" File "../../sf.py", line 70, in
gwout = AbinitOutReader(filename = out_file,is_sc = invar_dict['is_sc'])
File "/home/zhou/SF_Sky_git/outread/outread.py", line 449, in init
self.get_gw_qpen(i,self.nversion)
File "/home/zhou/SF_Sky_git/outread/outread.py", line 850, in get_gw_qpen
hf_k = qpen_k - sigc_k
TypeError: unsupported operand type(s) for -: 'list' and 'list'
"
But I have checked the types of qpen_k and sigc_k, they are np.array types so "-" operation should be fine. Could you please help me figure out the reason of this error?
Thank you very much!
Sky
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.