I separated my parakeets. Was this the right thing to do?

  I have two female parakeets that I've had for almost 3 years now. They used to get along fine, but then my one parakeet, her name is Pip, layed eggs. They are not fertile, but she is determinedly sitting on them and I'm not going to take them away until two weeks are up. Well, my other parakeet, Ernie (Yes, that's a boy name, but I swore she was a boy when I got her and I'm not changing the name now ), tries to go to the bottom of the cage and Pip chases her away because she doesn't want Ernie near her eggs. So, a couple days ago, Ernie went to the bottom of the cage and Pip attacked her. It wasn ' t just pecking at Ernie, Pip grabbed onto Ernie and they started rolling while squawking and biting eachother. I was forced to reach my hand in and physically separate them before they hurt eachother. Today, Ernie went down again and the same thing happened. This time, however, Ernie left the battle with a bleeding scratch on her leg. So, in desperation, and not wanting them to hurt eachother anymore, I put Ernie in a different cage. Was this the right thing to do? Please help me! !!
Based on what you said your sure that the eggs arent fertile since what you have are both female parakeet assuming you got 2 females and one lays eggs and become agrressive, I would assume that you dont have a nestbox and one female lays eggs on the bottom of the cage. If this is the case remove the eggs when shes done laying the whole clutch of eggs about 4 - 8 eggs when shes done laying reomoved the eggs and re arrange the whole cage to stop her breeding instinc also it would be necesary to separate them for a moment to avoid injuries.
A lot of male birds tend to eat the eggs and she may feel endangered and is defending her babies.At first when I heard I thought it was a joke then I researched at I was stunned. Its good you have seperated them.Put the cages next to each other and put the male back in once the eggs have hatched as he cant do anything then.
You say you arent going to take away the eggs until two weeks are up. Well it takes close to three weeks for a normal clutch of eggs to begin hatching so thats less time than that. Not only that but while she sits on those eggs trying to protect them and having no male for them to be fertile or even to feed her while she sits, is not good for her. She wont eat as well, and you have already experienced the stress going on in their cage. pets question and answers,www.5d2d.com

Truly, you are way better to toss those eggs now so she can get back to normal feeding.

You must have a second cage as you seperated the birds, so putting her in a new environment will be a form of distraction therapy in itself. BUT its a waste of her time and health sitting on eggs that wont hatch. She will get thin and she will get stressed.

Do her a favour and toss the eggs, and rearrange the cage, add a few toys and give her some distractions.