Skip to content

Commit 15aa88e

Browse files
committed
added json saving and finished design studio
1 parent dd36c58 commit 15aa88e

5 files changed

Lines changed: 240 additions & 80 deletions

File tree

docs/report.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@
8989
"metadata": {},
9090
"source": [
9191
"Things to implement before Friday:\n",
92-
"1. manual pixel editor in case the pixel converter isnt perfect\n",
93-
"2. sleeves\n",
94-
"3. multiple alpha patterns on one thing - to edit them you click on the sidepanel on one of the alpha patterns and edit like normal.\n",
95-
"4. Be able to copy an alpha pattern for continuous 'stripe' or to make a repeating pattern (maybe through the multiple alpha pattern added or have like a choice to make a vertical or horizontal repeating pattern from one alpha pattern? maybe even a hexagonal grid, square grid? offset vertical stripes over some parts of the sweater?\n",
96-
"6. make more unit tests that have good coverage (see julians comments)\n",
97-
"7. have the whole pattern in one pdf; so be able to have separate 'projects' at once: front panel, back panel, and sleeves. so we can design alpha patterns and fit for each aspect of the sweater and then put everything in one pdf pattern with the title of the project that we chose and the rest of the instructions."
92+
"1. manual pixel editor in case the pixel converter isnt perfect (still in developement - prototype exists)\n",
93+
"2. sleeves (no progress)\n",
94+
"3. multiple alpha patterns on one thing - to edit them you click on the sidepanel on one of the alpha patterns and edit like normal. (DONE)\n",
95+
"5. Be able to copy an alpha pattern for continuous 'stripe' or to make a repeating pattern (maybe through the multiple alpha pattern added or have like a choice to make a vertical or horizontal repeating pattern from one alpha pattern? maybe even a hexagonal grid, square grid? offset vertical stripes over some parts of the sweater? (DONE)\n",
96+
"6. make more unit tests that have good coverage (see julians comments) (no progress)\n",
97+
"7. have the whole pattern in one pdf; so be able to have separate 'projects' at once: front panel, back panel, and sleeves. so we can design alpha patterns and fit for each aspect of the sweater and then put everything in one pdf pattern with the title of the project that we chose and the rest of the instructions. (the pdf is built, but only for one panel)\n",
98+
"8. save JSON file of current session so you don't loose progress and can import the JSON file to start back on (no progress)\n",
99+
"9. README file update to include the instructions of download and use. "
98100
]
99101
}
100102
],

src/knitting_pattern/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
process_uploaded_image,
3030
rotate_matrix,
3131
generate_cropped_canvas_png_bytes,
32-
merge_stamps
32+
merge_stamps,
33+
crop_matrix_to_bounding_box,
34+
serialize_project_state,
35+
deserialize_project_state
3336
)
3437

0 commit comments

Comments
 (0)