Quantum gravity project experimental repo.
- Clone the repository from here.
We will assume you want to use the QuantumGrav.jl package in another environment that you create yourself.
-
Open a terminal and start the Julia REPL
-
Activate a project environment in which you want to work
# press ] to enter the package manager prompt, then:
activate path/to/your/project
# press backspace or Ctrl+C to leave the pkg prompt- Add the QuantumGrav package as a dependency. This must be done from a local path
# press ] to enter the package manager prompt, then:
add /path/to/QuantumGrav/QuantumGrav.jlThis is only necessary as long as QuantumGrav.jl is not in the official package repository of julia.
For the python installation instructions, see the documentation
- Clone the repository from here.
We will assume you want to use the QuantumGrav.jl package in another environment that you create yourself.
- Open a terminal, start the Julia REPL and activate your target environment
activate path/to/your/project- Check out
QuantumGrav.jlfor development
# press ] to enter the package manager prompt, then:
develop path/to/QuantumGrav/QuantumGrav.jlThis will track the changes you made automatically.
- Running tests from the Julia REPL (recommended for detailed output):
using TestItemRunner
@run_package_tests- For building the documentation locally
- Go o the
docsdirectory in the QuantumGrav.jl subdirectory - run
julia --color=yes --project make.jl - if you want to have debug output, set the
JULIA_DEBUGenvironment variable toDocumenter:
export JULIA_DEBUG=Documenterand then run the above command again to get all the debug output.
This runs the tests defined under QuantumGrav.jl/test using the activated environment.
For the python installation instructions, see the documentation
The documentation is generated with MkDocs and mkdocstrings. MkDocs needs to be able to import the QuantumGrav package so either install the package in the same environment (editable install above) or add the src path to PYTHONPATH before running mkdocs.
Quick serve (from repository root):
cd QuantumGravPy
# if you didn't install the package, export PYTHONPATH to include the src dir
mkdocs serveFollow the instructions on screen to open the documentation. More on mkdocs can be found here, and on the Documenter.jl package used in the Julia package documentation here.
- PyTorch and PyTorch-Geometric installation is platform and CUDA-version specific; consult the official installation docs if you encounter wheel or binary compatibility errors.
- If you get errors from Julia about 'cannot merge projects' or other things related to packaging, try to delete the Manifest.toml in your project. This will force a rebuilding of the dependency tree and versioning thereof and in the process usually resolve inconsistencies arising from package updates or addition of new packages.
Tbd.