Inferring the parallax of Westerlund 1 from Gaia DR2