mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-05 11:00:10 +01:00
Spelling in comments
This commit is contained in:
parent
1ff6d37952
commit
ce86b932ca
@ -162,7 +162,7 @@ def get_l_ezfio_config():
|
|||||||
|
|
||||||
def ninja_ezfio_cfg_rule():
|
def ninja_ezfio_cfg_rule():
|
||||||
"""
|
"""
|
||||||
Return the ezfio_interface rule who will create
|
Return the ezfio_interface rule which will create
|
||||||
the _ezfio_interface.irp.f the _ezfio_config from the EZFIO.cfg
|
the _ezfio_interface.irp.f the _ezfio_config from the EZFIO.cfg
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ def ninja_symlink_rule():
|
|||||||
def ninja_symlink_build(path_module, l_symlink):
|
def ninja_symlink_build(path_module, l_symlink):
|
||||||
"""
|
"""
|
||||||
Create the symlink
|
Create the symlink
|
||||||
and the l_symlink who are all the symlink list
|
and the l_symlink which are all the symlink list
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not l_symlink:
|
if not l_symlink:
|
||||||
@ -401,7 +401,7 @@ def get_l_file_for_module(path_module):
|
|||||||
|
|
||||||
def get_file_dependency(d_info_module):
|
def get_file_dependency(d_info_module):
|
||||||
"""
|
"""
|
||||||
For a module return all the irp.f90 file who depend
|
For a module return all the irp.f90 needed files
|
||||||
"""
|
"""
|
||||||
d_irp = defaultdict(dict)
|
d_irp = defaultdict(dict)
|
||||||
|
|
||||||
@ -578,13 +578,13 @@ def get_binaries(path_module):
|
|||||||
def get_dict_binaries(l_module, mode="production"):
|
def get_dict_binaries(l_module, mode="production"):
|
||||||
"""
|
"""
|
||||||
Return a dict [module] = list_binaries
|
Return a dict [module] = list_binaries
|
||||||
If a the production mode is enable only header module
|
If the production mode is enabled, return header modules
|
||||||
who will produce all binaries
|
which will produce all binaries
|
||||||
|
|
||||||
Example : The module Full_CI can produce the binary SCF
|
Example : The module Full_CI can produce the binary SCF
|
||||||
so you dont need to compile at all the module Hartree-Fock
|
so you dont need to compile at all the module Hartree-Fock
|
||||||
|
|
||||||
But you need to change the path acordingly
|
But you need to change the path accordingly
|
||||||
Full_CI/Hartree-Fock/SCF
|
Full_CI/Hartree-Fock/SCF
|
||||||
"""
|
"""
|
||||||
d_binaries = defaultdict(list)
|
d_binaries = defaultdict(list)
|
||||||
@ -899,12 +899,10 @@ if __name__ == "__main__":
|
|||||||
for module in dict_root_path.values():
|
for module in dict_root_path.values():
|
||||||
|
|
||||||
if module not in d_binaries:
|
if module not in d_binaries:
|
||||||
l_msg = ["{0} is a root module but he do not containt a main file",
|
l_msg = ["{0} is a root module but does not contain a main file.",
|
||||||
"Is intolerable !",
|
|
||||||
"You need a main file:",
|
|
||||||
"- Create it in {0}",
|
"- Create it in {0}",
|
||||||
"- Or delete {0} `qp_install_module.py uninstall {0}`",
|
"- Or delete {0} `qp_install_module.py uninstall {0}`",
|
||||||
"- Or install a module who need {0} with a main "]
|
"- Or install a module that needs {0} with a main "]
|
||||||
|
|
||||||
print "\n".join(l_msg).format(module.rel)
|
print "\n".join(l_msg).format(module.rel)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -33,7 +33,7 @@ Required:
|
|||||||
doc:<str> The plain text documentation
|
doc:<str> The plain text documentation
|
||||||
type:<str> A Fancy_type supported by the ocaml.
|
type:<str> A Fancy_type supported by the ocaml.
|
||||||
type `ei_handler.py get_supported_type` for a list
|
type `ei_handler.py get_supported_type` for a list
|
||||||
interface:<str> The interface is list of string sepeared by "," who can containt :
|
interface:<str> The interface is list of string sepeared by "," which can contain :
|
||||||
- ezfio (if you only whant the ezfiolib)
|
- ezfio (if you only whant the ezfiolib)
|
||||||
- provider (if you want the provider)
|
- provider (if you want the provider)
|
||||||
- ocaml (if you want the ocaml gestion)
|
- ocaml (if you want the ocaml gestion)
|
||||||
@ -233,7 +233,7 @@ def get_dict_config_file(module_obj):
|
|||||||
|
|
||||||
d[pvd]["module"] = module_obj
|
d[pvd]["module"] = module_obj
|
||||||
|
|
||||||
# Create the dictionary who containt the value per default
|
# Create the dictionary which contains the default value
|
||||||
d_default = {"ezfio_name": pvd,
|
d_default = {"ezfio_name": pvd,
|
||||||
"ezfio_dir": module_obj.lower,
|
"ezfio_dir": module_obj.lower,
|
||||||
"size": "1"}
|
"size": "1"}
|
||||||
@ -309,7 +309,7 @@ def create_ezfio_provider(dict_ezfio_cfg):
|
|||||||
interface,
|
interface,
|
||||||
default
|
default
|
||||||
size}
|
size}
|
||||||
create the a list who containt all the code for the provider
|
create the a list which contains all the code for the provider
|
||||||
output = output_dict_info['ezfio_dir'
|
output = output_dict_info['ezfio_dir'
|
||||||
return [code, ...]
|
return [code, ...]
|
||||||
"""
|
"""
|
||||||
@ -613,8 +613,8 @@ def save_ocaml_input(module_lower, str_ocaml_input):
|
|||||||
|
|
||||||
def get_l_module_with_auto_generate_ocaml_lower():
|
def get_l_module_with_auto_generate_ocaml_lower():
|
||||||
"""
|
"""
|
||||||
Get all module who have EZFIO.cfg with ocaml data
|
Get all modules which have EZFIO.cfg with Ocaml data
|
||||||
(NB `search` in all the ligne and `match` only in one)
|
(NB `search` in all the lines and `match` only in one)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ~#~#~#~#~#~#~#~ #
|
# ~#~#~#~#~#~#~#~ #
|
||||||
|
Loading…
Reference in New Issue
Block a user