Skip to content

Commit

Permalink
Replaced warn() with less worrying print()
Browse files Browse the repository at this point in the history
  • Loading branch information
demisjohn committed Jan 18, 2020
1 parent 26932d2 commit 7a09799
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 86 deletions.
8 changes: 4 additions & 4 deletions ASML_JobCreator/Cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_CellSize(self):
try:
return self.CellSize
except AttributeError:
if WARN(): warn("Using default values for `CellSize`.")
if WARN(): print("Using default values for `CellSize`.")
self.set_CellSize( Defaults.CELL_SIZE)
return self.CellSize
#end
Expand All @@ -117,7 +117,7 @@ def get_MatrixShift(self):
try:
return self.MatrixShift
except AttributeError:
if WARN(): warn("Using default values for `MatrixShift`.")
if WARN(): print("Using default values for `MatrixShift`.")
self.set_MatrixShift( Defaults.MATRIX_SHIFT )
return self.MatrixShift
#end
Expand All @@ -128,7 +128,7 @@ def get_NumberDiePerCell(self):
try:
return self.NumberDiePerCell
except AttributeError:
if WARN(): warn("Using default values for `NumberDiePerCell`.")
if WARN(): print("Using default values for `NumberDiePerCell`.")
self.NumberDiePerCell = Defaults.CELL_SIZE
return self.NumberDiePerCell
#end
Expand All @@ -138,7 +138,7 @@ def get_MinNumberDie(self):
try:
return self.MinNumberDie
except AttributeError:
if WARN(): warn("Using default values for `MinNumberDie`.")
if WARN(): print("Using default values for `MinNumberDie`.")
self.MinNumberDie = Defaults.MIN_NUMBER_DIES
return self.MinNumberDie
#end
Expand Down
2 changes: 1 addition & 1 deletion ASML_JobCreator/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_CellSize(self):
try:
return self.CellSize
except AttributeError:
if WARN(): warn("Using default values for `CellSize`.")
if WARN(): print("Using default values for `CellSize`.")
self.set_CellSize( Defaults.CELL_SIZE)
return self.CellSize
#end
Expand Down
4 changes: 2 additions & 2 deletions ASML_JobCreator/Job.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_comment(self):
try:
return (self.comment_line1, self.comment_line2, self.comment_line3)
except AttributeError:
if WARN(): warn("Using default values for Job `comment`.")
if WARN(): print("Using default values for Job `comment`.")
self.comment_line1, self.comment_line2, self.comment_line3 = \
Defaults.comment_line1, Defaults.comment_line2, Defaults.comment_line3
return (self.comment_line1, self.comment_line2, self.comment_line3)
Expand Down Expand Up @@ -393,7 +393,7 @@ def add(string="", cmd='', val=[0,0], tab=tab, integers=False):
LyrIDstr = L.LayerID
else:
warnstr = 'Layer # %i: Layer ID string "%s" is invalid, setting ID string to layer number.' % (i, str(L.LayerID))
if WARN(): warn(warnstr)
if WARN(): print(warnstr)
LyrIDstr = str(i)
L.LayerID = LyrIDstr
#end if(LayerID is alphanumeric)
Expand Down
4 changes: 2 additions & 2 deletions ASML_JobCreator/Layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_LayerShift(self):
try:
return self.LayerShift
except AttributeError:
if WARN(): warn("Using default values for `LayerShift`.")
if WARN(): print("Using default values for `LayerShift`.")
self.set_LayerShift( Defaults.ProcessData_LAYER_SHIFT)
return self.LayerShift
#end
Expand Down Expand Up @@ -177,7 +177,7 @@ def get_GlobalLevelPoints(self):
try:
return (self.GlobalLevel_Point1, self.GlobalLevel_Point2, self.GlobalLevel_Point3)
except AttributeError:
if WARN(): warn("Using default values for `GlobalLevel_Point1/2/3`.")
if WARN(): print("Using default values for `GlobalLevel_Point1/2/3`.")
self.set_GlobalLevelPoints(xy1=[0,0], xy2=[0,0], xy3=[0,0] )
return (self.GlobalLevel_Point1, self.GlobalLevel_Point2, self.GlobalLevel_Point3)
#end
Expand Down
77 changes: 0 additions & 77 deletions Module Test v1.py

This file was deleted.

0 comments on commit 7a09799

Please sign in to comment.