A doctor previously accused of killing one of her friends has walked free from court after admitting drugs offences.

Katy McAllister had pled guilty to supplying a fellow medic with a quantity of diazepam pills.

The 31-year-old also gave tablets, including Temazepam, to another man as well as having so-called magic mushrooms.

McAllister was initially held following a probe into the death of her friend Louise McGowan in May 2015.

The doctor, employed by NHS Tayside, had been accused of the culpable homicide of the 27-year-old.

It is alleged at two addresses in Dundee, including a tattoo parlour, she "recklessly and unlawfully" supplied "controlled and potentially lethal drugs".

But, a during a trial in Edinburgh in May, McAllister's legal team argued there was insufficient evidence to the accusation.

Judge Graham Buchanan QC then threw out the culpable homicide accusation before McAllister pled guilty to the drug crimes.

On Tuesday, the doctor was sentenced at the High Court in Glasgow.

Judge Buchanan ordered her to carry out 150 hours of unpaid work within nine months.

The court was told McAllister, who is from Dundee, will be investigated by the General Medical Council.

The new mother was suspended by NHS Tayside, but is currently on "unpaid maternity leave".

McAllister had pled guilty to supplying fellow doctor Richard Bowditch with diazepam between July 2014 and March 2015. This was said to be between two to four tablets.

She also admitted giving the same drug as well as a Temazepam pill to John Mundy between November 2014 and May 2015.

McAllister further possessed £10 worth of magic mushrooms at her home as well as a small amount of the drug Midazolam in May 2015.

Her QC told the court on Tuesday that McAllister was not been involved in a "commercial supply operation".

The court heard the medic, described in a text found by police as the "coolest doctor in the world," faces an uncertain career.

Mark Stewart, defending, added the GMC will conduct a probe while NHS Tayside will decide what "what their position is".

The advocate also provided testimonials to the court "from people of some standing" - but it was not revealed who they were.

Mr Stewart went on: "She is someone held in high regard... that demonstrates, in the whole, we are dealing with a person who is a useful member of society."

Judge Buchanan said the charges McAllister admitted were "still of some seriousness".

Sentencing, he told her: "For certain reasons due to your health, it may not be possible for you to do certain types of (unpaid) work.

"However, it can be tailored to ensure you are able to comply with the terms of the order."