A man has been charged over an incident in which a police officer was allegedly slashed with a samurai sword.
Officers had been called to a block of flats
The constable suffered a wound to his hand in the incident in the Gorgie area of Edinburgh on Thursday morning.
A police spokeswoman said: "A 40-year-old man has been charged in connection with an assault on a police officer." He is due to appear in court on Friday.
Police had been called to flats in Wardlaw Place at about 0345 BST after reports of a disturbance.
Shortly before 0530 BST, a man appeared at the door of a flat waving a samurai sword.
One of the officers was slashed on his hand when he attempted to shield his face.
Police said the constable's injuries were serious, but not life-threatening.
He was taken to Edinburgh Royal Infirmary before being transferred to St John's hospital in Livingston for surgery.