Skip to content

Week 3#3

Merged
kastute21 merged 8 commits into
mainfrom
week-3
May 27, 2026
Merged

Week 3#3
kastute21 merged 8 commits into
mainfrom
week-3

Conversation

@kastute21

Copy link
Copy Markdown
Collaborator

report with all the details on the progress of this project + future implementations.
you can run the streamlit app from the terminal by pasting streamlit run src/knitting_pattern/app.py

kastute21 added 8 commits May 13, 2026 16:04
documentation assignment as well as 3 new .py files containing: the math engine, the image engine for the colour and knitting chart, and the app prototype on streamlit
created the report and filled out my progress on the project
@vandenman vandenman requested review from LYang-uva and julianwuth May 25, 2026 12:03

@julianwuth julianwuth left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Can the package be installed?
    • Yes, it can.
  • Is the vignette set up correctly?
    • Yes, it is. However, there seem to be some problems with the rendering on GitHub.
  • Did the unit tests run?
  • Did they pass?
    • Yes, they did, but they have low coverage.
  • Anything else that comes to mind
    • See in-line comments.

@author: kasteivanauskaite
"""

from .example import add, calculate_mean

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably want to delete this including the example.py file

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super thanks for the detailed comments!!!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment

Comment thread pyproject.toml

[project.optional-dependencies]
dev = [
"pytest",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add pytest-cov here, so you can check test coverage.

elif panel_type == "Back Panel":
shaping = calculate_back_neck_shaping(total_sts, target_size, gauge_rows)
if use_shaping:
sweater_grid = apply_back_short_rows_to_grid(sweater_grid, shaping)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apply_back_short_rows_to_grid is not imported at the top, so this will lead to an error

heart_sts = calculate_stitches(15.0, my_gauge_sts)
heart_rows = calculate_rows(15.0, my_gauge_rows)

giant_heart = scale_pattern_matrix(tiny_heart, heart_sts, heart_rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be scale_pattern_matrix_integer

Comment thread src/tests/test_example.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed.

@LYang-uva LYang-uva left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

○ Can the package be installed? -yes
○ Is the vignette set up correctly? -- The short fix: add three or four code cells that import the engines, run a representative calculation, and print the output.
○ Did the unit tests set up with continuous integration run on GitHub? -yes
■ Did they pass? -yes

@kastute21 kastute21 merged commit eb2c15a into main May 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants