Constraining the anomalous magnetic moment of the tau lepton with the ATLAS experiment