Giter Site home page Giter Site logo

willchen789 / 599-knitting-complete Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mhofmann-uw/599-knitting-complete

0.0 0.0 0.0 1.35 MB

Code Base for UW CSE 599 Course on E-Textiles Programming Assignments

Python 74.64% Batchfile 0.05% Shell 25.30%

599-knitting-complete's Introduction

599-Knitting-Complete

Code Base for UW CSE 599 Course on E-Textiles Programming Assignments

Installation

In the command line, type:

git clone https://github.com/mhofmann-uw/599-Knitting-Complete.git

Next, change into the working directory by typing:

cd 599-Knitting-Assignments

(note: if you installed the repo in a subdirectory, make sure to type out the full path.)

If you have trouble opening the file, you likely need to run the following commands:

git submodule init
git submodule update

^These commands initialize and update the submodules (other Git repos) that the visualizer depends on.

See the github documentation on cloning a repository if you need assistance with installation.

Set Up

This project may work on older versions of Python, but it was developed with Python 3.9

Particularly if you are a Windows User I highly recommend running this code as a PyCharm Project.

Otherwise:

Install the required packages using the requirements.txt file:

pip install -r requirements.txt while in the project directory.

Add the project directory to your PYTHONPATH

In Unix machines: export PYTHONPATH="${PYTHONPATH}:/path/to/your/project/"

For Windows: set PYTHONPATH=%PYTHONPATH%;C:\path\to\your\project\

Now you should be able to access main methods from cmd line (e.g., python tests\test_simple_knitgraphs.py)

Package Structure

Assignment 1 is spread across two packages and the test package

knit_graphs

This package contains the classes used to create a knit graph (Loop, Yarn, Knit_Graph, Pull_Direction(Enum)). Methods in these classes need to be implemented to complete Assignment 1

debugging_tools

This package contains a visualizer method to help visualize simple knit graphs. This may be useful to extend for debugging future projects. It also contains a set of simple knitgraph which manually generate some simple textures. In future assignments we will make it easier to define more complex knit graphs. 2 of these textures need to be implemented for assignment 1

knitting_machine

This package contains the code to generate knitout code using a model of a v-bed knitting machine.

599-knitting-complete's People

Contributors

mkhofmann avatar mhofmann-uw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.