The front of the building was also the headquarters of the fictional Lothian Police force in the ITV series Crime, written by Irvine Welsh.

The rear annexe, on Johnston Terrace, is home to tech workspace CodeBase and was used in Dept Q, which debuted on Netflix earlier this year.

It was initially set in Copenhagen and based on the books by Danish writer Jussi Adler-Olsen, but the location was moved to Edinburgh before it made the jump to the small screen.

In August, Netflix announced that the series, starring Matthew Goode cold case department leader DCI Carl Morck, would return for a second season.

Telereal Trillium, which leases the facility for CodeBase from PGIM, has a lease on the building until 2033.