This commit is contained in:
oleting
2020-12-26 14:42:31 +01:00
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -3,3 +3,4 @@ res/output/
res/input/ res/input/
.vscode/ .vscode/
*.pyc *.pyc
*.png
+1 -1
View File
@@ -24,7 +24,7 @@ class NassiShneidermanDiagram:
self.instructions[instruction_key] = instruction self.instructions[instruction_key] = instruction
logging.debug("added instruction %s : %s", instruction_key, instruction.instruction_text) logging.debug("added instruction %s : %s", instruction_key, instruction.instruction_text)
def convert_to_image(self, filename: str, x_size=200): def convert_to_image(self, filename: str, x_size: int=200):
logging.info(f"Saving NSD to {filename}.png") logging.info(f"Saving NSD to {filename}.png")
cti.NSD_init(x_size, 5000) cti.NSD_init(x_size, 5000)
x, y, x_sz = 0, 0, x_size x, y, x_sz = 0, 0, x_size