Skip to content

ssciwr/QuantumGrav

Repository files navigation

test Docs — Python package for modelling Docs — Julia package for data generation

QuantumGrav

Quantum gravity project experimental repo.

Installation

Julia

  1. Clone the repository from here.

We will assume you want to use the QuantumGrav.jl package in another environment that you create yourself.

  1. Open a terminal and start the Julia REPL

  2. 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
  1. 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.jl

This is only necessary as long as QuantumGrav.jl is not in the official package repository of julia.

Python

For the python installation instructions, see the documentation

Installation as a developer

  1. Clone the repository from here.

Julia (developer workflow)

We will assume you want to use the QuantumGrav.jl package in another environment that you create yourself.

  1. Open a terminal, start the Julia REPL and activate your target environment
activate path/to/your/project
  1. Check out QuantumGrav.jl for development
# press ] to enter the package manager prompt, then:
develop path/to/QuantumGrav/QuantumGrav.jl

This will track the changes you made automatically.

  1. Running tests from the Julia REPL (recommended for detailed output):
using TestItemRunner
@run_package_tests
  1. For building the documentation locally
  • Go o the docs directory in the QuantumGrav.jl subdirectory
  • run julia --color=yes --project make.jl
  • if you want to have debug output, set the JULIA_DEBUG environment variable to Documenter:
export JULIA_DEBUG=Documenter

and 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.

Python (developer workflow)

For the python installation instructions, see the documentation

Building the documentation locally

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 serve

Follow 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.

Notes and troubleshooting

  • 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.

Contribution guide

Tbd.

About

Quantum gravity project experimental repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5