Git Product home page Git Product logo

scheduler's Introduction

Scheduler

Python version build tests codecov

This is the automated Scheduler for Gemini Observatory, part of the GPP project.

For the list of dependencies check: requirements.txt.

How to Install (Local Development)

Note: These instructions assume you are using Mac OS X or Linux.

Download the project source:

Fork the project and then clone into your desired directory.

You may wish to also fork and clone the lucupy repository, which is the package that contains the model for this project.

Create the project environment:

Using virtualenv:

Make sure you have an active Python 3.10 or 3.11 distribution installed on your machine.

virtualenv can be installed using pip:

$ pip install virtualenv

Then in the project directory, execute:

$ virtualenv --python=/path/to/python_executable venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Using conda or Anaconda:

In the project directory, execute:

$ conda env create -f environment.yml
$ conda activate scheduler

Executing the Scheduler

Standalone script

To run the scheduler as a standalone script, execute:

$ python scheduler/scripts/run_greedymax.py

If you have performed the installation correctly, you should see logging messages, and an output of a plan, followed by the message DONE.

Service

To run the scheduler as a service, execute:

$ python scheduler/main.py

Jupyter notebooks

We offer Jupyter notebooks using a Mercury user interface to test the scheduler. This can be launched on localhost:8000 as follows:

$ cd demo
$ mercury run

This should open a tab in your active browser and show the notebooks.

If the startup complains about a missing allauth package, install this with:

$ pip install django-allauth

How to Install (Docker)

  1. Run Docker-compose. If is the first time running the script, it will take some time to build the images.
$ docker build -t scheduler .  
$ docker run -dp 8000:8000 scheduler
  1. You can access http://localhost:8000/graphql to interact with the GraphQL console.

Troubleshooting

The most likely cause of issues during execution is that changes have been made to the lucupy project and an update of the package is necessary. This can be done with:

$ pip install -U lucupy

scheduler's People

Contributors

bryanmiller avatar davidwk123 avatar dependabot[bot] avatar sraaphorst avatar stroncod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scheduler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.