Disabled "Ok"/"Update Geometry" button after first update. Solves issue #105.

This commit is contained in:
jpcaram
2015-02-05 09:18:54 -05:00
parent 681996d1f6
commit e353413cd3
7 changed files with 52 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
# This script is for profiling Gerber.parse_lines() line by line.
# Run kernprof -l -v gerber_parsing_line_profile_1.py
import sys
sys.path.append('../../')
from camlib import *
log = logging.getLogger('base2')
log.setLevel(logging.WARNING)
g = Gerber()
g.parse_file("gerber1.gbr")

View File

@@ -10,6 +10,8 @@ log.setLevel(logging.WARNING)
g = Gerber()
cProfile.run('g.parse_file("gerber1.gbr")', 'gerber1_profile', sort='cumtime')
#cProfile.run('g.parse_file("gerber1.gbr")', 'gerber1_profile', sort='cumtime')
cProfile.run('g.parse_file("/home/jpcaram/flatcam_test_files/Gerbers/AVR_Transistor_Tester_silkscreen_top.GTO")',
'gerber1_profile', sort='cumtime')
p = pstats.Stats('gerber1_profile')
p.strip_dirs().sort_stats('cumulative').print_stats(.1)