Skip to Content
Effective Computation in Physics
book

Effective Computation in Physics

by Anthony Scopatz, Kathryn D. Huff
June 2015
Intermediate to advanced
550 pages
13h 27m
English
O'Reilly Media, Inc.
Content preview from Effective Computation in Physics

Chapter 15. Local Version Control

In science, reproducibility is paramount. A fundamental principle of science, reproducibility is the requirement that experimental results from independent laboratories should be commensurate. In scientific computation simulations, data munging and analysis pipelines are experimental analogs. To ensure that results are repeatable, it must be possible to unwind code and analysis to previous versions, and to replicate plots. The most essential requirement is that all previous versions of the code, data, and provenance metadata must be robustly and retrievably archived. The best practice in scientific computing is called version control.

Rather than inventing a system of indexed directories holding full versions of your code from each day in the lab, the best practice in software development is to use a version control system that automates archiving and retrieval of text documents such as source code.

This chapter will explain:

  • What version control is

  • How to use it for managing files on your computer

  • And how to use it for managing files in a collaboration

First up, this chapter will discuss what version control is and how it fits into the reproducible workflow of an effective researcher in the physical sciences.

What Is Version Control?

Very briefly, version control is a way to:

  • Back up changing files

  • Store and access an annotated history

  • And manage merging of changes between different change sets

There are many tools to automate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Physics with Functional Programming

Learn Physics with Functional Programming

Scott N. Walck
Math for Deep Learning

Math for Deep Learning

Ronald T. Kneusel
Effective Python

Effective Python

Brett Slatkin
Good Math

Good Math

Mark C. Chu-Carroll

Publisher Resources

ISBN: 9781491901564Errata PageSupplemental Content