Skip to content

Workshop at AGU2019 "Best Practices for Developing and Sustaining Your Open-Source Research Software"

License

Notifications You must be signed in to change notification settings

agu-ossi/2019-agu-oss

Repository files navigation

Best Practices for Developing and Sustaining Your Open-Source Research Software

Binder

Material for the workshop at the AGU 2019 Fall Meeting.

Conveners: Rene Gassmoeller, Lindsey Justine Heagy, Lion Krischer, Leonardo Uieda, Christopher Bane Sullivan

Info
Location Grand Hyatt / Room: Conference Theatre (Theatre level)
Time Wednesday, 11 December 2019 / 08:00 - 12:20
Workshop ID SCIWS5
Shared notes Google Docs
Slides Slides
Feedback Mentimeter
Feedback (Results) Mentimeter

Description

Modern research software is the basis of scientific progress in geophysics by supporting data collection, data analysis, and numerical simulation. These codes span the range from small one-off scripts developed by individual researchers up to large packages with thousands of users. While there is increasing awareness about best programming practices, scientists are rarely prepared to scale their codes into team projects developed by larger communities. However, growing a sustainable software project and the community of practice that surrounds it is a prerequisite to make scientific software development more efficient and research more reproducible.

The open-source community has established modern best-practices for developing reliable software, publishing that software, forming communities around the code, and finding sustainable ways to maintain them over time. This hands-on half-day workshop is aimed at scientists currently developing their own software of any size. The participants will apply a workflow for developing and managing open-source research codes following best-practices. We will discuss licensing and privacy considerations for open-source projects in a scientific context, briefly review version control with git and hosting projects online, and teach how to automatically test and efficiently document code. Furthermore, we will discuss how to grow projects and manage communities around it. The course material is independent of programming language or scientific discipline. By the end of this workshop participants will be able to apply the gained knowledge directly to their own projects and create more sustainable research software.

Learning Objectives

Our aim with this workshop is for participants to:

  1. Learn about modern best-practices for developing, testing, documenting, and publishing research software that promote accessibility, reusability, and reproducibility.
  2. Gain hands-on experience with open-source software development tools available to researchers including Jupyter (for sharing, http://jupyter.org/), git (versioning, https://git-scm.com/), GitHub (collaboration, https://github.com/), ReadTheDocs (documentation, https://readthedocs.org/), and Travis CI (testing, https://travis-ci.org/).
  3. Learn basic concepts of software project management like the life cycle of scientific software, defining a target audience, developing a project mission and vision, building a welcoming community, and approaching scientists uncomfortable with sharing their research software.

Tentative Agenda

During the workshop, we'll introduce these topics by working through an example. The goal is to convert a notebook (or script) that does some data analysis into a Python library that is tested, documented, and can be reused. The final version of the library and a history of each step in the conversion process can be found at https://github.com/opengeophysics/2018-agu-oss-example-repo

Duration (min) Topic Tools
15 Motivations for community research software and its technical and social challenges. Software as a project, not a collection of files
15 Discussion with presenters and participants about prior experiences with technical and social challenges
15 Define target audience, mission, vision, and life cycle of the participant’s software projects
5 Break
20 Introduce the example we will work through and provide the Jupyter notebook
20 Practical review of version control with git and setting up an online repository on GitHub with the provided example project (a small python library, participants are encouraged to instead use their own research code in whichever language)
15 Managing communication and building a welcoming community
15 Including a Code of Conduct and Contributing Guidelines Contributor Covenant
15 Coffee Break
15 Introduction to open-source and how to choose an open-source license Choose a license, OSI Licenses
30 Why and how to write tests
15 How to set up continuous integration services to automate tests
5 Break
15 Importance of documentation and naming conventions. How to write and publish documentation. ReadTheDocs
15 Q&A this time block will be distributed over sessions as necessary
15 Overview on further resources available within the open source community (best-practice guides, developer communities, software organizations)

Before the workshop

If you would like to follow along interactively during the course, please do the following before the course starts:

  • Download and install Anaconda. Use the latest version of Python 3 and be sure to check the box that says "Add Anaconda to my PATH environment variable" if on Windows.

AnacondaPath

After the workshop

Since the time allocated for the workshop does not allow to cover scientific software development in its entirety, we provide links to some alternatives and guides to extend and deepen some of the taught concepts.

Further reading

Alternatives to the tools presented

  • Version control

    • GitLab: Version control for with private repositories and for your own server
  • Continous Integration

  • Documentation

    • MkDocs: Fast and simple project documentation using Markdown.

Recording of AGU 2018 (slightly different focus)

recording-AGU

Workshop - AGU 2019

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

About

Workshop at AGU2019 "Best Practices for Developing and Sustaining Your Open-Source Research Software"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •