Installation

CompactObject is an open-source tool designed for comprehensive neutron star equation inference. It is built to be easy to install and use. Follow the step-by-step installation guide below to get started.

Optional: Using Python Virtual Environment

If you are not using Anaconda, you can create a virtual environment using Python’s venv module:

  1. Create a Virtual Environment

    Run the following command to create a virtual environment named CompactObject:

    python3 -m venv CompactObject
    

    You can specify a different path by replacing `CompactObject` with your desired directory name.

  2. Activate the Environment

    Activate the virtual environment with:

    source CompactObject/bin/activate
    
  3. Install CompactObject

    Once the environment is activated, install CompactObject using pip:

    pip install CompactObject-TOV
    

    To upgrade to the latest version, run:

    pip install CompactObject-TOV --upgrade
    
  4. Using the Package

    You are now ready to use CompactObject. Each time you want to use the package, ensure you activate the environment:

    source CompactObject/bin/activate
    

Summary

  • Using Anaconda: 1. Create and activate the CompactObject environment. 2. Install CompactObject with pip. 3. Activate the environment whenever you use the package.

  • Using Python Virtual Environment: 1. Create and activate the CompactObject virtual environment. 2. Install CompactObject with pip. 3. Activate the environment whenever you use the package.

If you encounter any issues or have questions, feel free to reach out for support. Happy computing!