Fixed formating

This commit is contained in:
Siim Raud 2016-02-02 00:40:52 +02:00
parent 42dafd7565
commit c4e2a8982f

View file

@ -32,9 +32,9 @@ class MachineShapeTypes(object):
CIRCULAR = "circular"
class RetractionCombingTypes(object):
OFF = "off"
ALL = "all"
NO_SKIN = "no skin"
OFF = "off"
ALL = "all"
NO_SKIN = "no skin"
class GcodeFlavors(object):
REPRAP = "reprap"
@ -396,11 +396,11 @@ class Profile(object):
"First extruder": SupportDualTypes.FIRST,
"Second extruder": SupportDualTypes.SECOND
},
retraction_combing={
"Off": RetractionCombingTypes.OFF,
"All": RetractionCombingTypes.ALL,
"No Skin": RetractionCombingTypes.NO_SKIN
}
retraction_combing={
"Off": RetractionCombingTypes.OFF,
"All": RetractionCombingTypes.ALL,
"No Skin": RetractionCombingTypes.NO_SKIN
}
)
result = dict()
@ -875,7 +875,7 @@ class Profile(object):
"retractionAmountExtruderSwitch": self.get_microns("retraction_dual_amount"),
"retractionZHop": self.get_microns("retraction_hop"),
"minimalExtrusionBeforeRetraction": self.get_microns("retraction_minimal_extrusion"),
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
"multiVolumeOverlap": self.get_microns("overlap_dual"),
"objectSink": max(0, self.get_microns("object_sink")),
"minimalLayerTime": self.get_int("cool_min_layer_time"),