Enocoutered Error in runing get_cube.py #31
-
Respected sir, When I run the get_cube.py file after all necessary steps it shows an error, read as ValueError: max() arg is an empty sequence. How can I reslove this issue. Can you plz help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's most likely your arguments for the get_cube.py. First compile the cube_exe by running With the current code, I had to edit the Makefile where the line starts with CUBEOBJ needs to be:
This change is pushed for your convenience. Once you have cube_exe, you can use the get_cube.py with a syntax as follows,
Say you have the directory tree something like
Then you go to the test_calculation and run I suppose you can also copy these files to your working directory. In which case, |
Beta Was this translation helpful? Give feedback.
It's most likely your arguments for the get_cube.py.
First compile the cube_exe by running
make cube -f Makefile
With the current code, I had to edit the Makefile where the line starts with CUBEOBJ needs to be:
CUBEOBJ = mod_periodic_table.o new_input_reader.o $(CUBEBASICS) $(FBASICS) $(METAGGA) $(EXTRAFIL) $(POSTACTIVE) $(BASIS) $(DISP) $(WFX) $(DMAT) $(GROUPOBJ) $(EFPOBJ) $(SIC) $(SIC2) $(SIC3) $(LOCALSIC) $(LEVY_PERDEW)
This change is pushed for your convenience.
Once you have cube_exe, you can use the get_cube.py with a syntax as follows,
python3 get_cube.py --cube cubefilename calculation_directory_path cube_exe_directory_path
Say you have the directory tree something like