Received this from Historic Scotland:
“… due to anticipated ceremonial activity taking place at Edinburgh Castle, the site will be closed on Wednesday 5 July. The Crown Room will be closed all day Tuesday 4 July and until midday Thursday 6 July. ”
Plan accordingly.