def save_gains(self, ms, gains_dict):
    p = gain_path(ms)
    dvc_dump(gains_dict, p)
    if self.add_paths(p):
        self.commit('Updated gains')
def save_gains(self, ms, gains_dict):
    p = gain_path(ms)
    dvc_dump(gains_dict, p)
    if self.add_paths(p):
        self.commit('Updated gains')