Coder Social home page Coder Social logo

astrophysics-project's Introduction

Neural Network Superresolving for Cosmological Simulations

In this repository, I attempt to reproduce the analysis of Schaurecker et al. 2021 on Enzo data (they use Illustris).

To reproduce

The code main.py is intended to be run locally. It sends commands to the remote. You will need to modify this with your site-specific parameters. It should be the only file you need to modify.

To set up the remote machine (should be capable of Slurm):

remote$ # Install Spack on the remote
remote$ # See my notes in reports/spack_on_cc.md for details on the UIUC Campus Cluster.
remote$ git clone -c feature.manyFiles=true https://github.com/spack/spack.git

remote$ # Copy spack.lock to the remote
remote$ spack/bin/spack environment create main4 spack.lock
remote$ spack/bin/spack environment activate main4
remote$ spack/bin/spack concretize
remote$ spack/bin/spack install

remote$ # Copy envirment.yaml ot the remote
remote$ spack/bin/spack activate main4
remote$ conda install --name main3 --file environment,yaml

remote$ # Ensure that Slurm works
remote$ sbatch --help

To set up the local machine:

locla$ # Install conda
locla$ # Install conda environment
local$ conda install --name main3 --file environment,yaml

You will need to configure SSH keys to the remote.

Then you should be to run main.py. main.py runs the entire workflow. It is smart about not running a certain step if the data already exists. It also hashes the input parameters in the filename of the data, so it is unlikely to return stale data.

The end result will end up in output.

astrophysics-project's People

Contributors

charmoniumq avatar

Watchers

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