GithubHelp home page GithubHelp logo

vanife / research_code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrickmineault/research_code

0.0 0.0 0.0 18.89 MB

Writing good research code

License: MIT License

Python 45.32% Jupyter Notebook 54.68%

research_code's Introduction

Writing good research code

This repo contains the slides and code for a presentation on writing research software I first gave in January 2021 to the PhD students in neuro at Harvard. It's a compendium of 5 lessons I learned the hard way about writing research code that won't bite back.

  • The slides are here
  • The rest of the repo contains supporting code in the format advocated in the first lesson.
  • You can see the full presentation recorded at NMA 2021 and a short version focused on testing recorded at Brainhack MTL 2021.

For the book version of these slides, see goodresearch.dev.

Organization

This repo follows the organization of shablona. All the code and tests are under research_code. research_code is itself a Python package.

For the package, we use the same setup as this tutorial on setuptools, and is compatible with it - this repo is publishable to PyPI directly!

To install the package locally in development mode

cd into this directory, then run:

pip install -e .

In Python:

import research_code

To test

cd into the research_code/tests directory, then run each file individually, or run nose2.

CI

While shablona recommended the use of Jenkins for continuous integration (CI), we showcase instead Github actions, which don't require additional accounts/software. The workflow, which runs tests, is located in .github/workflows/ci.yml.

research_code's People

Contributors

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