diff --git a/nexus/docs/installation.rst b/nexus/docs/installation.rst index 0cee290717..deb572b205 100644 --- a/nexus/docs/installation.rst +++ b/nexus/docs/installation.rst @@ -11,10 +11,6 @@ to development or (currently) if any scripts/"binaries" are needed. Administrati Note that while many supercomputer systems have an outdated system Python, a recent Python version is usually provided via a loadable module: check the local documentation or discuss with your system administrators to find the simplest installation route. -.. important:: - Currently, Nexus installed via ``pip`` or ``uv`` does not include any scripts (``qmca``, ``nxs-test``, etc.) which are readily available in QMCPACK installations. - Users may install them by following the manual installation method described in :ref:`manual_install`. - .. contents:: Installation using ``pip`` @@ -54,8 +50,11 @@ To subsequently use the environment: cd $HOME/somewhere # Wherever you created the environment source nexusenv/bin/activate -Note that any versions of Nexus found via the ``PYTHONPATH`` environment variable will take precedence over a ``pip`` installed -version. +Note that any versions of Nexus found via the ``PYTHONPATH`` environment variable will take precedence over a ``pip`` installed version. + +.. important:: + If you install Nexus into a virtual environment, the Nexus executables (e.g. ``qmca``, ``nxs-sim``, etc.) will only be accessible if you have activated that virtual environment. + System-wide installation (not recommended in general) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -114,7 +113,6 @@ minimum set of dependencies. You can also install the full set of optional depen uv pip install "nexus[full]@git+https://github.com/QMCPACK/qmcpack.git@main#subdirectory=nexus" - Note that when using ``uv`` as a package manager, your Python scripts can optionally use a modified `shebang `__ that tells it to use ``uv`` to run it. For example diff --git a/nexus/nexus/bin/__init__.py b/nexus/nexus/bin/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/nexus/bin/eshdf b/nexus/nexus/bin/eshdf similarity index 99% rename from nexus/bin/eshdf rename to nexus/nexus/bin/eshdf index c6791d8805..3bd3bb0f0a 100755 --- a/nexus/bin/eshdf +++ b/nexus/nexus/bin/eshdf @@ -15,11 +15,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/bin/nxs-redo b/nexus/nexus/bin/nxs-redo similarity index 98% rename from nexus/bin/nxs-redo rename to nexus/nexus/bin/nxs-redo index 53bc86d965..7d25009d39 100755 --- a/nexus/bin/nxs-redo +++ b/nexus/nexus/bin/nxs-redo @@ -10,11 +10,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/bin/nxs-sim b/nexus/nexus/bin/nxs-sim similarity index 99% rename from nexus/bin/nxs-sim rename to nexus/nexus/bin/nxs-sim index 3d553c16e6..fba2219fe2 100755 --- a/nexus/bin/nxs-sim +++ b/nexus/nexus/bin/nxs-sim @@ -10,11 +10,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/bin/nxs-test b/nexus/nexus/bin/nxs-test similarity index 97% rename from nexus/bin/nxs-test rename to nexus/nexus/bin/nxs-test index 4f3a19872a..d30dec7faf 100755 --- a/nexus/bin/nxs-test +++ b/nexus/nexus/bin/nxs-test @@ -17,13 +17,75 @@ if host_dir is not None: #end if # save nexus directories -library_dir = parent_dir -test_dir = os.path.join(parent_dir,'nexus/tests') -reference_dir = os.path.join(parent_dir,'nexus/tests/reference') +library_dir = os.path.dirname(parent_dir) +test_dir = os.path.join(parent_dir,'tests') +reference_dir = os.path.join(parent_dir,'tests/reference') example_dir = os.path.join(parent_dir,'examples') # ensure that nxs-test executable is resident in a nexus directory tree -dirs_check = ['examples','bin','nexus','nexus/tests','nexus/tests/reference'] +dirs_check = [ + "tests/", + "bin/", + "basisset.py", + "bundle.py", + "debug.py", + "developer.py", + "execute.py", + "fileio.py", + "gamess_analyzer.py", + "gamess_input.py", + "gamess.py", + "gaussian_process.py", + "generic.py", + "grid_functions.py", + "hdfreader.py", + "__init__.py", + "machines.py", + "memory.py", + "nexus_base.py", + "nexus_version.py", + "numerics.py", + "observables.py", + "periodic_table.py", + "physical_system.py", + "project_manager.py", + "pseudopotential.py", + "pwscf_analyzer.py", + "pwscf_data_reader.py", + "pwscf_input.py", + "pwscf_postprocessors.py", + "pwscf.py", + "pyscf_analyzer.py", + "pyscf_input.py", + "pyscf_sim.py", + "qmcpack_analyzer_base.py", + "qmcpack_analyzer.py", + "qmcpack_converters.py", + "qmcpack_input.py", + "qmcpack_method_analyzers.py", + "qmcpack_property_analyzers.py", + "qmcpack.py", + "qmcpack_quantity_analyzers.py", + "qmcpack_result_analyzers.py", + "quantum_package_analyzer.py", + "quantum_package_input.py", + "quantum_package.py", + "rmg_analyzer.py", + "rmg_input.py", + "rmg.py", + "scripts.py", + "simulation.py", + "structure.py", + "template_simulation.py", + "testing.py", + "unit_converter.py", + "utilities.py", + "vasp_analyzer.py", + "vasp_input.py", + "vasp.py", + "versions.py", + "xmlreader.py", +] for d in dirs_check: pd = os.path.join(parent_dir,d) if not os.path.exists(pd): @@ -1788,7 +1850,7 @@ def user_examples(label): # remove prexisting example files nenter(tpath,relative=True) # copy over nexus examples files just for this example - epath = os.path.join(example_dir,path) + epath = os.path.realpath(os.path.join(example_dir,path)) command = 'rsync -av {0}/* ./'.format(epath) out,err,rc = execute(command) if rc>0: @@ -2223,7 +2285,7 @@ if __name__=='__main__': testing_wrong_nexus_install = False try: import nexus - nexus_file = os.path.realpath(os.path.join(nexus.__file__,'../..')) + nexus_file = os.path.realpath(os.path.join(nexus.__file__,'../')) test_file = os.path.realpath(os.path.join(__file__,'../..')) testing_wrong_nexus_install = nexus_file!=test_file except: diff --git a/nexus/bin/qdens b/nexus/nexus/bin/qdens similarity index 99% rename from nexus/bin/qdens rename to nexus/nexus/bin/qdens index e3cdccdb9f..789abdffa8 100755 --- a/nexus/bin/qdens +++ b/nexus/nexus/bin/qdens @@ -11,11 +11,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/bin/qdens-radial b/nexus/nexus/bin/qdens-radial similarity index 99% rename from nexus/bin/qdens-radial rename to nexus/nexus/bin/qdens-radial index c481e66540..9e923749c4 100755 --- a/nexus/bin/qdens-radial +++ b/nexus/nexus/bin/qdens-radial @@ -9,11 +9,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') @@ -56,7 +56,6 @@ import nexus.memory as memory from nexus.observables import ChargeDensity, vlog from nexus.fileio import XsfFile - # External imports try: import numpy as np diff --git a/nexus/bin/qmc-fit b/nexus/nexus/bin/qmc-fit similarity index 99% rename from nexus/bin/qmc-fit rename to nexus/nexus/bin/qmc-fit index dc62fca267..d4fd45912f 100755 --- a/nexus/bin/qmc-fit +++ b/nexus/nexus/bin/qmc-fit @@ -34,11 +34,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/bin/qmca b/nexus/nexus/bin/qmca similarity index 99% rename from nexus/bin/qmca rename to nexus/nexus/bin/qmca index 20d1348c8f..41269e56c6 100755 --- a/nexus/bin/qmca +++ b/nexus/nexus/bin/qmca @@ -13,11 +13,11 @@ def find_nexus_modules(): import sys # Prepend the assumed path of a folder containing the closely coupled nexus module to module search path # It points to the top Nexus directory not necessarily the top QMCPACK directory. - nexus_lib = os.path.realpath(os.path.join(__file__,'..','..')) + nexus_lib = os.path.realpath(os.path.join(__file__,'..','..','..')) # "import nexus" will succeed if nexus directory exists without __init__.py in it. # Explicitly check the existence of nexus/__init__.py at the closely coupled location - nexus_init = os.path.join(nexus_lib,'nexus','__init__.py') + nexus_init = os.path.join(nexus_lib,'nexus/__init__.py') if not os.path.exists(nexus_init): print('\nExpected file '+nexus_init+' does not exist!' '\nBroken Nexus installation! Please follow Nexus manual regarding installation.\n') diff --git a/nexus/examples/gamess/H2O/h2o_pp_casscf.py b/nexus/nexus/examples/gamess/H2O/h2o_pp_casscf.py similarity index 100% rename from nexus/examples/gamess/H2O/h2o_pp_casscf.py rename to nexus/nexus/examples/gamess/H2O/h2o_pp_casscf.py diff --git a/nexus/examples/gamess/H2O/h2o_pp_cisd.py b/nexus/nexus/examples/gamess/H2O/h2o_pp_cisd.py similarity index 100% rename from nexus/examples/gamess/H2O/h2o_pp_cisd.py rename to nexus/nexus/examples/gamess/H2O/h2o_pp_cisd.py diff --git a/nexus/examples/gamess/H2O/h2o_pp_hf.py b/nexus/nexus/examples/gamess/H2O/h2o_pp_hf.py similarity index 100% rename from nexus/examples/gamess/H2O/h2o_pp_hf.py rename to nexus/nexus/examples/gamess/H2O/h2o_pp_hf.py diff --git a/nexus/examples/gamess/H2O/pseudopotentials/H.BFD_V5Z_ANO.gms b/nexus/nexus/examples/gamess/H2O/pseudopotentials/H.BFD_V5Z_ANO.gms similarity index 100% rename from nexus/examples/gamess/H2O/pseudopotentials/H.BFD_V5Z_ANO.gms rename to nexus/nexus/examples/gamess/H2O/pseudopotentials/H.BFD_V5Z_ANO.gms diff --git a/nexus/examples/gamess/H2O/pseudopotentials/O.BFD_V5Z.gms b/nexus/nexus/examples/gamess/H2O/pseudopotentials/O.BFD_V5Z.gms similarity index 100% rename from nexus/examples/gamess/H2O/pseudopotentials/O.BFD_V5Z.gms rename to nexus/nexus/examples/gamess/H2O/pseudopotentials/O.BFD_V5Z.gms diff --git a/nexus/examples/generic/bash_demo.py b/nexus/nexus/examples/generic/bash_demo.py similarity index 100% rename from nexus/examples/generic/bash_demo.py rename to nexus/nexus/examples/generic/bash_demo.py diff --git a/nexus/examples/generic/python_demo.py b/nexus/nexus/examples/generic/python_demo.py similarity index 100% rename from nexus/examples/generic/python_demo.py rename to nexus/nexus/examples/generic/python_demo.py diff --git a/nexus/examples/generic/scripts/data_generator.py b/nexus/nexus/examples/generic/scripts/data_generator.py similarity index 100% rename from nexus/examples/generic/scripts/data_generator.py rename to nexus/nexus/examples/generic/scripts/data_generator.py diff --git a/nexus/examples/generic/scripts/data_processor.py b/nexus/nexus/examples/generic/scripts/data_processor.py similarity index 100% rename from nexus/examples/generic/scripts/data_processor.py rename to nexus/nexus/examples/generic/scripts/data_processor.py diff --git a/nexus/examples/generic/scripts/list_directory.sh b/nexus/nexus/examples/generic/scripts/list_directory.sh similarity index 100% rename from nexus/examples/generic/scripts/list_directory.sh rename to nexus/nexus/examples/generic/scripts/list_directory.sh diff --git a/nexus/examples/pyscf/01_h2o_hf/H2O.xyz b/nexus/nexus/examples/pyscf/01_h2o_hf/H2O.xyz similarity index 100% rename from nexus/examples/pyscf/01_h2o_hf/H2O.xyz rename to nexus/nexus/examples/pyscf/01_h2o_hf/H2O.xyz diff --git a/nexus/examples/pyscf/01_h2o_hf/README.rst b/nexus/nexus/examples/pyscf/01_h2o_hf/README.rst similarity index 100% rename from nexus/examples/pyscf/01_h2o_hf/README.rst rename to nexus/nexus/examples/pyscf/01_h2o_hf/README.rst diff --git a/nexus/examples/pyscf/01_h2o_hf/h2o_ae_hf.py b/nexus/nexus/examples/pyscf/01_h2o_hf/h2o_ae_hf.py similarity index 100% rename from nexus/examples/pyscf/01_h2o_hf/h2o_ae_hf.py rename to nexus/nexus/examples/pyscf/01_h2o_hf/h2o_ae_hf.py diff --git a/nexus/examples/pyscf/01_h2o_hf/h2o_pp_hf.py b/nexus/nexus/examples/pyscf/01_h2o_hf/h2o_pp_hf.py similarity index 100% rename from nexus/examples/pyscf/01_h2o_hf/h2o_pp_hf.py rename to nexus/nexus/examples/pyscf/01_h2o_hf/h2o_pp_hf.py diff --git a/nexus/examples/pyscf/01_h2o_hf/scf_template.py b/nexus/nexus/examples/pyscf/01_h2o_hf/scf_template.py similarity index 100% rename from nexus/examples/pyscf/01_h2o_hf/scf_template.py rename to nexus/nexus/examples/pyscf/01_h2o_hf/scf_template.py diff --git a/nexus/examples/pyscf/02_diamond_hf/README.rst b/nexus/nexus/examples/pyscf/02_diamond_hf/README.rst similarity index 100% rename from nexus/examples/pyscf/02_diamond_hf/README.rst rename to nexus/nexus/examples/pyscf/02_diamond_hf/README.rst diff --git a/nexus/examples/pyscf/02_diamond_hf/diamond_pp_hf_gamma.py b/nexus/nexus/examples/pyscf/02_diamond_hf/diamond_pp_hf_gamma.py similarity index 100% rename from nexus/examples/pyscf/02_diamond_hf/diamond_pp_hf_gamma.py rename to nexus/nexus/examples/pyscf/02_diamond_hf/diamond_pp_hf_gamma.py diff --git a/nexus/examples/pyscf/02_diamond_hf/scf_template.py b/nexus/nexus/examples/pyscf/02_diamond_hf/scf_template.py similarity index 100% rename from nexus/examples/pyscf/02_diamond_hf/scf_template.py rename to nexus/nexus/examples/pyscf/02_diamond_hf/scf_template.py diff --git a/nexus/examples/pyscf/H2O/H2O.xyz b/nexus/nexus/examples/pyscf/H2O/H2O.xyz similarity index 100% rename from nexus/examples/pyscf/H2O/H2O.xyz rename to nexus/nexus/examples/pyscf/H2O/H2O.xyz diff --git a/nexus/examples/pyscf/H2O/h2o_ae_hf.py b/nexus/nexus/examples/pyscf/H2O/h2o_ae_hf.py similarity index 100% rename from nexus/examples/pyscf/H2O/h2o_ae_hf.py rename to nexus/nexus/examples/pyscf/H2O/h2o_ae_hf.py diff --git a/nexus/examples/pyscf/H2O/h2o_pp_hf.py b/nexus/nexus/examples/pyscf/H2O/h2o_pp_hf.py similarity index 100% rename from nexus/examples/pyscf/H2O/h2o_pp_hf.py rename to nexus/nexus/examples/pyscf/H2O/h2o_pp_hf.py diff --git a/nexus/examples/pyscf/H2O/scf_template.py b/nexus/nexus/examples/pyscf/H2O/scf_template.py similarity index 100% rename from nexus/examples/pyscf/H2O/scf_template.py rename to nexus/nexus/examples/pyscf/H2O/scf_template.py diff --git a/nexus/examples/pyscf/diamond/dft_template.py b/nexus/nexus/examples/pyscf/diamond/dft_template.py similarity index 100% rename from nexus/examples/pyscf/diamond/dft_template.py rename to nexus/nexus/examples/pyscf/diamond/dft_template.py diff --git a/nexus/examples/pyscf/diamond/diamond_pp_dft_gamma.py b/nexus/nexus/examples/pyscf/diamond/diamond_pp_dft_gamma.py similarity index 100% rename from nexus/examples/pyscf/diamond/diamond_pp_dft_gamma.py rename to nexus/nexus/examples/pyscf/diamond/diamond_pp_dft_gamma.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/neon_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/neon_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/neon_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/neon_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/scf_template.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/neon_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/neon_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/neon_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/neon_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/02_neon_frozen_core/scf_template.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/carbon_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/carbon_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/carbon_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/carbon_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/03_carbon_triplet_uhf/scf_template.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/methane_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/methane_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/methane_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/methane_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/06_methane_back_prop/scf_template.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/diamond_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/diamond_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/diamond_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/diamond_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/07_diamond_2x2x2_supercell/scf_template.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py diff --git a/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/scf_template.py b/nexus/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/scf_template.py rename to nexus/nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/scf_template.py diff --git a/nexus/examples/qmcpack/pseudopotentials/C.BFD.upf b/nexus/nexus/examples/qmcpack/pseudopotentials/C.BFD.upf similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/C.BFD.upf rename to nexus/nexus/examples/qmcpack/pseudopotentials/C.BFD.upf diff --git a/nexus/examples/qmcpack/pseudopotentials/C.BFD.xml b/nexus/nexus/examples/qmcpack/pseudopotentials/C.BFD.xml similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/C.BFD.xml rename to nexus/nexus/examples/qmcpack/pseudopotentials/C.BFD.xml diff --git a/nexus/examples/qmcpack/pseudopotentials/H.BFD.upf b/nexus/nexus/examples/qmcpack/pseudopotentials/H.BFD.upf similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/H.BFD.upf rename to nexus/nexus/examples/qmcpack/pseudopotentials/H.BFD.upf diff --git a/nexus/examples/qmcpack/pseudopotentials/H.BFD.xml b/nexus/nexus/examples/qmcpack/pseudopotentials/H.BFD.xml similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/H.BFD.xml rename to nexus/nexus/examples/qmcpack/pseudopotentials/H.BFD.xml diff --git a/nexus/examples/qmcpack/pseudopotentials/O.BFD.upf b/nexus/nexus/examples/qmcpack/pseudopotentials/O.BFD.upf similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/O.BFD.upf rename to nexus/nexus/examples/qmcpack/pseudopotentials/O.BFD.upf diff --git a/nexus/examples/qmcpack/pseudopotentials/O.BFD.xml b/nexus/nexus/examples/qmcpack/pseudopotentials/O.BFD.xml similarity index 100% rename from nexus/examples/qmcpack/pseudopotentials/O.BFD.xml rename to nexus/nexus/examples/qmcpack/pseudopotentials/O.BFD.xml diff --git a/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.xyz b/nexus/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.xyz diff --git a/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/H2O.xyz b/nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/H2O.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/H2O.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/H2O.xyz diff --git a/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/h2o_ae_hf_vmc.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/h2o_ae_hf_vmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/h2o_ae_hf_vmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/h2o_ae_hf_vmc.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/scf_template.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/scf_template.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/scf_template.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/LiH/LiH.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/LiH.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/LiH/LiH.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/LiH.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.TN-DF.upf b/nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.TN-DF.upf similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.TN-DF.upf rename to nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.TN-DF.upf diff --git a/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.pp.data b/nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.pp.data similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.pp.data rename to nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/H.pp.data diff --git a/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.TN-DF.upf b/nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.TN-DF.upf similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.TN-DF.upf rename to nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.TN-DF.upf diff --git a/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.pp.data b/nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.pp.data similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.pp.data rename to nexus/nexus/examples/qmcpack/rsqmc_misc/LiH/pseudopotentials/Li.pp.data diff --git a/nexus/examples/qmcpack/rsqmc_misc/O2_qp/O2.xyz b/nexus/nexus/examples/qmcpack/rsqmc_misc/O2_qp/O2.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/O2_qp/O2.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_misc/O2_qp/O2.xyz diff --git a/nexus/examples/qmcpack/rsqmc_misc/O2_qp/o2_selci_vmc_dmc.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/O2_qp/o2_selci_vmc_dmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/O2_qp/o2_selci_vmc_dmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/O2_qp/o2_selci_vmc_dmc.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/c20/c20.cage.xyz b/nexus/nexus/examples/qmcpack/rsqmc_misc/c20/c20.cage.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/c20/c20.cage.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_misc/c20/c20.cage.xyz diff --git a/nexus/examples/qmcpack/rsqmc_misc/c20/c20.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/c20/c20.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/c20/c20.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/c20/c20.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond/d16bulk.POSCAR b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/d16bulk.POSCAR similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond/d16bulk.POSCAR rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/d16bulk.POSCAR diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond/d16vac.POSCAR b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/d16vac.POSCAR similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond/d16vac.POSCAR rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/d16vac.POSCAR diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond/diamond.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond_vacancy.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond_vacancy.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond/diamond_vacancy.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond/diamond_vacancy.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond_spin.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond_spin.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond_spin.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/diamond_spin.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/lowdin.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/lowdin.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/lowdin.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/lowdin.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/run_lowdin.sh b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/run_lowdin.sh similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/run_lowdin.sh rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_lowdin/run_lowdin.sh diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/dft_template.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/dft_template.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/dft_template.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/dft_template.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/diamond_pp_dft_gamma.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/diamond_pp_dft_gamma.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/diamond_pp_dft_gamma.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/diamond_pp_dft_gamma.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/diamond_spin.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/diamond_spin.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/diamond_spin.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/diamond_spin.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens-radial.sh b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens-radial.sh similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens-radial.sh rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens-radial.sh diff --git a/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens.sh b/nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens.sh similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens.sh rename to nexus/nexus/examples/qmcpack/rsqmc_misc/diamond_radial_density/qdens.sh diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/Fe_bcc.xsf b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/Fe_bcc.xsf similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/Fe_bcc.xsf rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/Fe_bcc.xsf diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/iron_ldaU_dmc.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/iron_ldaU_dmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/iron_ldaU_dmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/iron_ldaU_dmc.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.upf b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.upf similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.upf rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.upf diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.xml b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.xml similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.xml rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/pseudopotentials/Fe.ccECP-soft.xml diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/get_1rdms.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/get_1rdms.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/get_1rdms.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/get_1rdms.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/plot_1rdm.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/plot_1rdm.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/plot_1rdm.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/estimators/scripts_postproc/plot_1rdm.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/excited/band.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/excited/band.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/excited/band.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/excited/band.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/excited/d16bulk.POSCAR b/nexus/nexus/examples/qmcpack/rsqmc_misc/excited/d16bulk.POSCAR similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/excited/d16bulk.POSCAR rename to nexus/nexus/examples/qmcpack/rsqmc_misc/excited/d16bulk.POSCAR diff --git a/nexus/examples/qmcpack/rsqmc_misc/excited/vmc.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/excited/vmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_excitation_alternatives.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_excitation_alternatives.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/excited/vmc_excitation_alternatives.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_excitation_alternatives.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_opt_tiling.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_opt_tiling.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/excited/vmc_opt_tiling.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/excited/vmc_opt_tiling.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/graphene/graphene.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/graphene/graphene.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/graphene/graphene.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/graphene/graphene.py diff --git a/nexus/examples/qmcpack/rsqmc_misc/oxygen_dimer/oxygen_dimer.py b/nexus/nexus/examples/qmcpack/rsqmc_misc/oxygen_dimer/oxygen_dimer.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_misc/oxygen_dimer/oxygen_dimer.py rename to nexus/nexus/examples/qmcpack/rsqmc_misc/oxygen_dimer/oxygen_dimer.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/H2O.xyz b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/H2O.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/H2O.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/H2O.xyz diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/h2o_ae_hf_qmc.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/h2o_ae_hf_qmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/h2o_ae_hf_qmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/h2o_ae_hf_qmc.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/scf_template.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/scf_template.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/01_h2o_hf_qmc/scf_template.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_gamma.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_gamma.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_gamma.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_gamma.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg_prim.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg_prim.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg_prim.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/diamond_pp_hf_twistavg_prim.py diff --git a/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/scf_template.py b/nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/scf_template.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/scf_template.py rename to nexus/nexus/examples/qmcpack/rsqmc_pyscf/02_diamond_hf_qmc/scf_template.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched_estimators.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched_estimators.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched_estimators.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/01_diamond_dft_vmc/diamond_lda_vmc_batched_estimators.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/diamond_lda_vmc_twistavg.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/diamond_lda_vmc_twistavg.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/diamond_lda_vmc_twistavg.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/02_diamond_dft_vmc_twistavg/diamond_lda_vmc_twistavg.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/diamond_lda_dmc_textrap.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/diamond_lda_dmc_textrap.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/diamond_lda_dmc_textrap.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/03_diamond_dft_dmc_textrap/diamond_lda_dmc_textrap.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/Fe_bcc.xsf b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/Fe_bcc.xsf similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/Fe_bcc.xsf rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/Fe_bcc.xsf diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/iron_ldaU_dmc_gcta.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/iron_ldaU_dmc_gcta.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/iron_ldaU_dmc_gcta.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/iron_ldaU_dmc_gcta.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/pseudopotentials b/nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/pseudopotentials similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/pseudopotentials rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_espresso/04_iron_dft_dmc_gcta/pseudopotentials diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/H2O.xyz b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/H2O.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/H2O.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/H2O.xyz diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/h2o_ae_hf_qmc.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/h2o_ae_hf_qmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/h2o_ae_hf_qmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/01_h2o_hf_qmc/h2o_ae_hf_qmc.py diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/O2.xyz b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/O2.xyz similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/O2.xyz rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/O2.xyz diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/README.rst b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/README.rst similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/README.rst rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/README.rst diff --git a/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/o2_selci_vmc_dmc.py b/nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/o2_selci_vmc_dmc.py similarity index 100% rename from nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/o2_selci_vmc_dmc.py rename to nexus/nexus/examples/qmcpack/rsqmc_quantum_package/02_o2_selci_qmc/o2_selci_vmc_dmc.py diff --git a/nexus/examples/quantum_espresso/01_diamond_scf/README.rst b/nexus/nexus/examples/quantum_espresso/01_diamond_scf/README.rst similarity index 100% rename from nexus/examples/quantum_espresso/01_diamond_scf/README.rst rename to nexus/nexus/examples/quantum_espresso/01_diamond_scf/README.rst diff --git a/nexus/examples/quantum_espresso/01_diamond_scf/diamond_lda.py b/nexus/nexus/examples/quantum_espresso/01_diamond_scf/diamond_lda.py similarity index 100% rename from nexus/examples/quantum_espresso/01_diamond_scf/diamond_lda.py rename to nexus/nexus/examples/quantum_espresso/01_diamond_scf/diamond_lda.py diff --git a/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/README.rst b/nexus/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/README.rst similarity index 100% rename from nexus/examples/quantum_espresso/02_diamond_self_consistent_U/README.rst rename to nexus/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/README.rst diff --git a/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/diamond_lda_sc_u.py b/nexus/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/diamond_lda_sc_u.py similarity index 100% rename from nexus/examples/quantum_espresso/02_diamond_self_consistent_U/diamond_lda_sc_u.py rename to nexus/nexus/examples/quantum_espresso/02_diamond_self_consistent_U/diamond_lda_sc_u.py diff --git a/nexus/examples/quantum_espresso/pseudopotentials/C.BFD.upf b/nexus/nexus/examples/quantum_espresso/pseudopotentials/C.BFD.upf similarity index 100% rename from nexus/examples/quantum_espresso/pseudopotentials/C.BFD.upf rename to nexus/nexus/examples/quantum_espresso/pseudopotentials/C.BFD.upf diff --git a/nexus/examples/quantum_espresso/pseudopotentials/Ge.pbe-kjpaw.UPF b/nexus/nexus/examples/quantum_espresso/pseudopotentials/Ge.pbe-kjpaw.UPF similarity index 100% rename from nexus/examples/quantum_espresso/pseudopotentials/Ge.pbe-kjpaw.UPF rename to nexus/nexus/examples/quantum_espresso/pseudopotentials/Ge.pbe-kjpaw.UPF diff --git a/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_16.xyz b/nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_16.xyz similarity index 100% rename from nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_16.xyz rename to nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_16.xyz diff --git a/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_64.xyz b/nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_64.xyz similarity index 100% rename from nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_64.xyz rename to nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/Ge_T_64.xyz diff --git a/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/relax_vs_kpoints_example.py b/nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/relax_vs_kpoints_example.py similarity index 100% rename from nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/relax_vs_kpoints_example.py rename to nexus/nexus/examples/quantum_espresso/relax_Ge_T_vs_kpoints/relax_vs_kpoints_example.py diff --git a/nexus/examples/quantum_package/01_h2o_hf/H2O.xyz b/nexus/nexus/examples/quantum_package/01_h2o_hf/H2O.xyz similarity index 100% rename from nexus/examples/quantum_package/01_h2o_hf/H2O.xyz rename to nexus/nexus/examples/quantum_package/01_h2o_hf/H2O.xyz diff --git a/nexus/examples/quantum_package/01_h2o_hf/README.rst b/nexus/nexus/examples/quantum_package/01_h2o_hf/README.rst similarity index 100% rename from nexus/examples/quantum_package/01_h2o_hf/README.rst rename to nexus/nexus/examples/quantum_package/01_h2o_hf/README.rst diff --git a/nexus/examples/quantum_package/01_h2o_hf/h2o_ae_hf.py b/nexus/nexus/examples/quantum_package/01_h2o_hf/h2o_ae_hf.py similarity index 100% rename from nexus/examples/quantum_package/01_h2o_hf/h2o_ae_hf.py rename to nexus/nexus/examples/quantum_package/01_h2o_hf/h2o_ae_hf.py diff --git a/nexus/examples/quantum_package/02_o2_selci/O2.xyz b/nexus/nexus/examples/quantum_package/02_o2_selci/O2.xyz similarity index 100% rename from nexus/examples/quantum_package/02_o2_selci/O2.xyz rename to nexus/nexus/examples/quantum_package/02_o2_selci/O2.xyz diff --git a/nexus/examples/quantum_package/02_o2_selci/README.rst b/nexus/nexus/examples/quantum_package/02_o2_selci/README.rst similarity index 100% rename from nexus/examples/quantum_package/02_o2_selci/README.rst rename to nexus/nexus/examples/quantum_package/02_o2_selci/README.rst diff --git a/nexus/examples/quantum_package/02_o2_selci/o2_selci.py b/nexus/nexus/examples/quantum_package/02_o2_selci/o2_selci.py similarity index 100% rename from nexus/examples/quantum_package/02_o2_selci/o2_selci.py rename to nexus/nexus/examples/quantum_package/02_o2_selci/o2_selci.py diff --git a/nexus/examples/quantum_package/H2O/H2O.xyz b/nexus/nexus/examples/quantum_package/H2O/H2O.xyz similarity index 100% rename from nexus/examples/quantum_package/H2O/H2O.xyz rename to nexus/nexus/examples/quantum_package/H2O/H2O.xyz diff --git a/nexus/examples/quantum_package/H2O/h2o_ae_hf.py b/nexus/nexus/examples/quantum_package/H2O/h2o_ae_hf.py similarity index 100% rename from nexus/examples/quantum_package/H2O/h2o_ae_hf.py rename to nexus/nexus/examples/quantum_package/H2O/h2o_ae_hf.py diff --git a/nexus/examples/quantum_package/O2/O2.xyz b/nexus/nexus/examples/quantum_package/O2/O2.xyz similarity index 100% rename from nexus/examples/quantum_package/O2/O2.xyz rename to nexus/nexus/examples/quantum_package/O2/O2.xyz diff --git a/nexus/examples/quantum_package/O2/o2_selci.py b/nexus/nexus/examples/quantum_package/O2/o2_selci.py similarity index 100% rename from nexus/examples/quantum_package/O2/o2_selci.py rename to nexus/nexus/examples/quantum_package/O2/o2_selci.py diff --git a/nexus/examples/rmg/01_diamond_scf/diamond_scf.py b/nexus/nexus/examples/rmg/01_diamond_scf/diamond_scf.py similarity index 100% rename from nexus/examples/rmg/01_diamond_scf/diamond_scf.py rename to nexus/nexus/examples/rmg/01_diamond_scf/diamond_scf.py diff --git a/nexus/nexus/scripts.py b/nexus/nexus/scripts.py new file mode 100644 index 0000000000..c5a504d35a --- /dev/null +++ b/nexus/nexus/scripts.py @@ -0,0 +1,44 @@ +import subprocess +import sys +from os import PathLike +from pathlib import Path + +bin_dir = Path(__file__).parent/"bin" + +def run(script_name: PathLike): + script_path = bin_dir/script_name + result = subprocess.run([script_path] + sys.argv[1:]) + sys.exit(result.returncode) +#end def run + +def eshdf(): + run("eshdf") +#end def eshdf + +def nxs_redo(): + run("nxs-redo") +#end def nxs_redo + +def nxs_sim(): + run("nxs-sim") +#end def nxs_sim + +def nxs_test(): + run("nxs-test") +#end def nxs_test + +def qdens(): + run("qdens") +#end def qdens + +def qdens_radial(): + run("qdens-radial") +#end def qdens_radial + +def qmca(): + run("qmca") +#end def qmca + +def qmc_fit(): + run("qmc-fit") +#end def qmc_fit diff --git a/nexus/nexus/testing.py b/nexus/nexus/testing.py index 9e58463c33..ea0b7791a9 100644 --- a/nexus/nexus/testing.py +++ b/nexus/nexus/testing.py @@ -290,16 +290,14 @@ def nexus_path(append=None,location=None): assert(len(tokens)>=3) assert(tokens[-1].startswith('testing.py')) assert(tokens[-2]=='nexus') - assert(tokens[-3]=='nexus') path = os.path.dirname(testing_path) - path = os.path.dirname(path) assert(path.endswith('/nexus')) if location is not None: if location=='unit': - append = 'nexus/tests' + append = 'tests' elif location=='bin': append = 'bin' else: diff --git a/nexus/nexus/tests/CMakeLists.txt b/nexus/nexus/tests/CMakeLists.txt index 0165563eec..272c3df2f7 100644 --- a/nexus/nexus/tests/CMakeLists.txt +++ b/nexus/nexus/tests/CMakeLists.txt @@ -5,13 +5,13 @@ include("${PROJECT_SOURCE_DIR}/CMake/python.cmake") check_python_reqs(numpy "nexus base" ADD_TEST) if(ADD_TEST) - file(TIMESTAMP ${qmcpack_SOURCE_DIR}/nexus/bin/nxs-test NEXUS_TESTLIST_TIMESTAMP) + file(TIMESTAMP ${qmcpack_SOURCE_DIR}/nexus/nexus/bin/nxs-test NEXUS_TESTLIST_TIMESTAMP) if(NOT "${NEXUS_TESTLIST_TIMESTAMP}" STREQUAL "${CACHE_NEXUS_TESTLIST_TIMESTAMP}") message("Generating Nexus test list for the first time or after a nxs-test time stamp change") - execute_process(COMMAND ${Python3_EXECUTABLE} ${qmcpack_SOURCE_DIR}/nexus/bin/nxs-test --ctestlist + execute_process(COMMAND ${Python3_EXECUTABLE} ${qmcpack_SOURCE_DIR}/nexus/nexus/bin/nxs-test --ctestlist RESULT_VARIABLE NEXUS_TESTLIST_RESULT OUTPUT_VARIABLE NEXUS_TESTLIST) if(NOT NEXUS_TESTLIST_RESULT EQUAL 0) - message(FATAL_ERROR "Command line '${Python3_EXECUTABLE} ${qmcpack_SOURCE_DIR}/nexus/bin/nxs-test --ctestlist' failed!") + message(FATAL_ERROR "Command line '${Python3_EXECUTABLE} ${qmcpack_SOURCE_DIR}/nexus/nexus/bin/nxs-test --ctestlist' failed!") endif() set(CACHE_NEXUS_TESTLIST @@ -31,7 +31,7 @@ if(ADD_TEST) endif() foreach(TESTNAME ${NEXUS_TESTLIST}) #message("Adding test ntest_nexus_${TESTNAME}") - set(NTEST "${qmcpack_SOURCE_DIR}/nexus/bin/nxs-test") + set(NTEST "${qmcpack_SOURCE_DIR}/nexus/nexus/bin/nxs-test") IF(ENABLE_PYCOV) add_test(NAME ntest_nexus_${TESTNAME} COMMAND ${PYTHON_COVERAGE_EXECUTABLE} run -p ${NTEST} -R ${TESTNAME}\$ --ctest --pythonpath=${PROJECT_SOURCE_DIR}/nexus:$ENV{PYTHONPATH}) diff --git a/nexus/nexus/tests/test_pseudopotential.py b/nexus/nexus/tests/test_pseudopotential.py index 3645724b24..ce95142c8a 100644 --- a/nexus/nexus/tests/test_pseudopotential.py +++ b/nexus/nexus/tests/test_pseudopotential.py @@ -234,7 +234,7 @@ def test_pseudopotential_classes(): f = open(files['C.BFD.xml'],'r') pp_relpath = f.read().strip() pp_path = os.path.split(files['C.BFD.xml'])[0] - filepath = os.path.join(pp_path,pp_relpath) + filepath = os.path.realpath(os.path.join(pp_path,pp_relpath)) f.close() qpp = QmcpackPP(filepath) diff --git a/nexus/nexus/tests/test_pseudopotential_files/C.BFD.upf b/nexus/nexus/tests/test_pseudopotential_files/C.BFD.upf index 02c521cf75..79413db7b0 100644 --- a/nexus/nexus/tests/test_pseudopotential_files/C.BFD.upf +++ b/nexus/nexus/tests/test_pseudopotential_files/C.BFD.upf @@ -1 +1 @@ -../../../examples/qmcpack/pseudopotentials/C.BFD.upf \ No newline at end of file +../../examples/qmcpack/pseudopotentials/C.BFD.upf \ No newline at end of file diff --git a/nexus/nexus/tests/test_pseudopotential_files/C.BFD.xml b/nexus/nexus/tests/test_pseudopotential_files/C.BFD.xml index 52629c190a..74db3b1ba4 100644 --- a/nexus/nexus/tests/test_pseudopotential_files/C.BFD.xml +++ b/nexus/nexus/tests/test_pseudopotential_files/C.BFD.xml @@ -1 +1 @@ -../../../examples/qmcpack/pseudopotentials/C.BFD.xml \ No newline at end of file +../../examples/qmcpack/pseudopotentials/C.BFD.xml \ No newline at end of file diff --git a/nexus/pyproject.toml b/nexus/pyproject.toml index 5417e2761c..90f5ad7d27 100644 --- a/nexus/pyproject.toml +++ b/nexus/pyproject.toml @@ -17,16 +17,15 @@ dependencies = [ "numpy (>=2.3.0, !=2.4.0) ; python_version >= '3.14.0'", # ] -# TODO Restructure to support including the scripts with the package distribution -# [project.scripts] -# eshdf = "nexus.scripts:eshdf" -# nxs-redo = "nexus.scripts:nxs_redo" -# nxs-sim = "nexus.scripts:nxs_sim" -# nxs-test = "nexus.scripts:nxs_test" -# qdens = "nexus.scripts:qdens" -# qdens-radial = "nexus.scripts:qdens_radial" -# qmca = "nexus.scripts:qmca" -# qmc-fit = "nexus.scripts:qmc_fit" +[project.scripts] +eshdf = "nexus.scripts:eshdf" +nxs-redo = "nexus.scripts:nxs_redo" +nxs-sim = "nexus.scripts:nxs_sim" +nxs-test = "nexus.scripts:nxs_test" +qdens = "nexus.scripts:qdens" +qdens-radial = "nexus.scripts:qdens_radial" +qmca = "nexus.scripts:qmca" +qmc-fit = "nexus.scripts:qmc_fit" [build-system] requires = ["hatchling"]