Git Product home page Git Product logo

bayes_gain_screens's Introduction

bayes_gain_screens

A reduced set of code from previous repositories that focuses purely on producing gain screens for DDF pipeline.

Preamble

This repository provides a code base that performs Bayesian infernce of doubly differential total electron content (DDTEC) from Jones scalars, Gaussian process regression DDTEC, and a pipeline that stiches all the pieces together. It is actively maintained and in rolling development. It does not adhere to stable release candidate protocol, so pieces of code may drastically change.

It assumes one has access to the LoTSS-DR2 archive, however as the pipeline evolves this assumption may disappear.

How it works

This pipeline is a set of steps each of which is a self-contained script that can be called from the command line. The user specifies which steps they would like to execute and the pipeline compiles this into a task execution graph which gets executed via Dijkstraa DFS path. The pipeline maintains the working directories so that the user never needs to clear caches etc. Importantly, the execution environment for each step is controlled using containerisation with singularity. You can by-pass the containerisation by calling the pipeline manually.

Requirements and installation

You'll want DDF-pipeline resources for everything except the imaging step which requires > 260GB RAM.

  1. singularity should be installed on all nodes you may execute on.

  2. a singularity image with killMS and DDF: branches used by SKSP (ask Frits Sweijen). Should be named lofar_sksp_ddf.simg, place this in a common singularity image directory.

  3. a singularity image with killMS and DDF: the gainscreens_premerge DDF branch (ask Frits Sweijen). Should be named lofar_sksp_ddf_gainscreens_premerge.simg, place this in a common singularity image directory. Until the SKSP pipeline is updated to use master DDF branch, the gain screens functionality is not available on the same image as sksp_iamge. (See https://github.com/cyriltasse/DDFacet/issues/651)

  4. One of the following:

Either, a singularity image of bayes_gain_screens named bayes_gain_screens.simg built with:

sudo singularity build bayes_gain_screens.simg bayes_gain_screens.singularity

Place this in a common singularity image directory.

Or, a conda environment with bayes_gain_screens installed (call it tf_py because it has tensorflow):

Install conda with this

DOWNLOAD_DIR=$HOME
INSTALL_DIR=$HOME
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $DOWNLOAD_DIR/miniconda.sh
bash $DOWNLOAD_DIR/miniconda.sh -b -p $INSTALL_DIR/miniconda3
. $INSTALL_DIR/miniconda3/etc/profile.d/conda.sh
echo ". $INSTALL_DIR/miniconda3/etc/profile.d/conda.sh" >> $HOME/.bashrc
hash -r 
conda config --set auto_activate_base false --set always_yes yes
conda update -q conda
conda info -a

Create a new conda env with this

conda create -q -n tf_py python=3.6
conda activate tf_py

Install bayes_gain_screens with this

GIT_DIR=$HOME/git
cd $GIT_DIR
git clone https://github.com/Joshuaalbert/bayes_gain_screens.git
cd bayes_gain_screens
pip install .
  1. bash shell. If you don't use bash then make sure you type bash before all things. Also, make sure you have a $HOME/.bashrc.

bayes_gain_screens's People

Contributors

joshuaalbert avatar jskenyon avatar

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.