Skip to content
Browse files

Fixed bug in gff_concordancy.py introduced in previous commit.

  • Loading branch information...
1 parent 4b4d0e8 commit 446b6c99cbc4e2893e5249c205ecfe10a0b5d263 @xwu committed Oct 25, 2008
View
2 Core/gff_concordancy.py
@@ -164,7 +164,7 @@ def main():
print ("%s %s : %s %s" % (a, b, c, d)).ljust(col_width),
else:
try:
- p = "%.1f%%" % float(matching_count) / (matching_count + unmatching_count) * 100
+ p = "%.1f%%" % (float(matching_count) / (matching_count + unmatching_count) * 100)
except ZeroDivisionError:
p = "--"
if option.verbose:
View
70 TraitChart/src/preload/CustomPreloader.as
@@ -1,70 +0,0 @@
-package preload
-{
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.events.ProgressEvent;
-
- import mx.events.FlexEvent;
- import mx.preloaders.DownloadProgressBar;
-
- // custom preloader based on the version at http://jaapkooiker.nl/
- public class CustomPreloader extends DownloadProgressBar
- {
-
- [Embed(source="spinner.swf", symbol="spinner")]
- private var FlashSymbol:Class;
- private var sprite:Sprite;
- private var clip:*;
-
- public function CustomPreloader()
- {
- super();
- this.clip = new FlashSymbol(); // embedded clips have their ActionScript stripped
- this.addChild(this.clip);
- }
-
- public override function set preloader(value:Sprite):void
- {
- value.addEventListener(ProgressEvent.PROGRESS, onDownloadProgress);
- value.addEventListener(Event.COMPLETE, onDownloadComplete);
- value.addEventListener(FlexEvent.INIT_PROGRESS, onInitProgress);
- value.addEventListener(FlexEvent.INIT_COMPLETE, onInitComplete);
- stage.addEventListener(Event.RESIZE, onResize);
-
- sprite = value;
- onResize(); // center our preloader immediately
- }
-
- private function onResize(event:Event = null):void
- {
- x = (stage.stageWidth / 2) - (clip.width / 2);
- y = (stage.stageHeight / 2) - (clip.height / 2);
- }
-
- private function onDownloadProgress(event:ProgressEvent):void
- {
- // nada
- }
-
- private function onDownloadComplete(event:Event):void
- {
- // nada
- }
-
- private function onInitProgress(event:FlexEvent):void
- {
- // nada
- }
-
- private function onInitComplete(event:FlexEvent):void
- {
- sprite.removeEventListener(ProgressEvent.PROGRESS, onDownloadProgress);
- sprite.removeEventListener(Event.COMPLETE, onDownloadComplete);
- sprite.removeEventListener(FlexEvent.INIT_PROGRESS, onInitProgress);
- sprite.removeEventListener(FlexEvent.INIT_COMPLETE, onInitComplete);
- stage.removeEventListener(Event.RESIZE, onResize);
- clip.stop();
- dispatchEvent(new Event(Event.COMPLETE));
- }
- }
-}
View
BIN TraitChart/src/preload/spinner.fla
Binary file not shown.
View
BIN TraitChart/src/preload/spinner.gif
Deleted file not rendered
View
BIN TraitChart/src/preload/spinner.swf
Binary file not shown.

0 comments on commit 446b6c9

Please sign in to comment.
Something went wrong with that request. Please try again.