My bike failed to restart after briefly shutting it off after a long ride. It has a new battery that has been on a charger. I thought that it had a fuel problem because it would start briefly with starter fluid (although it didn't run enthusiastically) so I replaced the fuel pump, which didn't help. So I checked for spark (which, obviously, I should have done before changing the fuel pump) and it was present but seemed weak/yellow. Does the presence of even minimal spark rule out a bad crank position sensor? I will probably order a coil and cap and see if that fixes it. Does that sound reasonable?
Update: The wire from the coil wasn't pushed completely onto the plug cap. I pushed it all back together tightly and it runs like a champ.