Skip to main content

Convert weaving patterns to overshot-patterned double weave

Project description

Convert weaving pattern files to overshot-patterned double weave

The patterns must obey these restrictions (after optional filtering, and ignoring ends with no shaft and picks with no treadle):

  • Each warp thread must be threaded on only one shaft.
  • The pattern must contain treadling information (not pure liftplan).
  • The pattern must use no more than one treadle per weft thread.
  • The pattern must have the same number of treadles as shafts.

Installing the Software

  • Install Python 3.11 or later.

  • Install this "as_op_doubleweave" package on the computer with command: pip install as_op_doubleweave

Usage

On the command line run:

as_op_doubleweave pattern_files

The pattern files may be .wif or .dtx files. The converted files are always .wif.

Filtering options:

  • --skip-even-ends for shadow weave patterns, for example
  • --skip-odd-ends (same)
  • --skip-even-picks for shadow weave patterns, patterns with tabby added, etc.
  • --skip-odd-picks (same)
  • --skip-treadles for patterns with dedicated treadles for tabby or other tie-down picks

The converted files are written to the same directory as the input files, and the file names include the filtering options used. This allows you to easily compare the result of converting a file with different filtering options.

The converted files include a bit of program-specific information for WeaveIt, setting the weave type to double weave so the detailed fabric view looks correct. Other programs will ignore this information.

Here is an example using handweaving.net shadow weave pattern 79721. First download the wif file (not as a liftplan), then convert it as follows:

as_op_doubleweave 79721.wif --skip-even-ends --skip-even-picks

This writes file "79721 as op doubleweave skip-even-ends skip-even-picks.wif".

You can also include all ends and picks from the original pattern. This gives a very different result that is also nice:

as_op_doubleweave 79721.wif

Developer Tips

  • Download the source code from github, or make a fork and download that.

  • Inside the directory, issue the following commands:

    • pip install -e . (note the final period) to install an "editable" version of the package. Meaning a version that runs from the source code, so any changes you make can be run without reinstalling.

    • pre-commit install to activate the pre-commit hooks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

as_op_doubleweave-0.11.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

as_op_doubleweave-0.11-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file as_op_doubleweave-0.11.tar.gz.

File metadata

  • Download URL: as_op_doubleweave-0.11.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for as_op_doubleweave-0.11.tar.gz
Algorithm Hash digest
SHA256 92084514556af0985ce3f1c60ae957e875763b7067977d9c3b2aea1d7570f9bb
MD5 85ea3259094f63afe8091e433102a6f7
BLAKE2b-256 296d9f4e2f2673ddeeade7f8c590a13167d898d95b26d9201771a64bb5329a63

See more details on using hashes here.

File details

Details for the file as_op_doubleweave-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for as_op_doubleweave-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3f69bb617bb13ef824c48309e4603ab7fbfb8665411f6584e6d920793ab07a
MD5 0f065fe6b47dbe2b110750547309e38c
BLAKE2b-256 3edfb16b61f3ffe5cfb7b6d4b88f97e73cbcd21b7138cd671008cacdd3032fe9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page