Coding Confessions
  • About
  • Confessions
  • Events
  • MAKE A CONFESSION
background

Confession

How I lost 90% of my project's data

What’s the background?

When I was working as a PhD student and a researcher I always spent a lot of time designing an experiment and then enjoyed getting to run it, publish it and do talks about it. There was always a fear that a bug in the code could bring everything crashing down and one time it did.

What happened?

I was working on a big psychology project and was writing the code for handling the experimental results. The experiment consisted of lots of trials for multiple conditions. Each trial was supposed to have one file containing the results for each condition.

When it came to analysing the results I realised that I had made the cardinal sin of saving over the data. I had forgotten to include the trial number in the file name, I only had the results of one trial and had been overwriting the results each time a new trial was conducted. I’d lost about 90% of the data from the experiment. It wasn’t something I could keep quiet and was very embarrased to own up to it, but I didn’t have a choice. Everyone invovled was initially quite annoyed, but later found it funny and it turned into a long running joke.

What did I learn?

  • That I should write tests (even though I still often don’t)
  • Callum Mole

    By Callum Mole

    Research Data Scientist at The Alan Turing Institute

  • September 2022
  • Submit a confession to us
  • Read confessions from the community
  • Run your own event
  • Watch previous events
Coding Confessions

Normalising failure in
research software

Learn more

  • About the project
  • Read confessions
  • Submit a confession
  • Organising an event
  • Privacy and licenses
  • Github repository

Software Sustainability Institute

The Coding Confessions project evolved as part of a hack day event at the Collaborations Workshop 2021. The Software Sustainability Institute cultivates better, more sustainable, research software to enable world-class research.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 4.0 International License.

© 2021 Coding Confessions

Menu