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.2.0.tar.gz (7.0 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.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: as_op_doubleweave-0.2.0.tar.gz
  • Upload date:
  • Size: 7.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f5ef5a26503e44035b99fd3dbd16dad312dbedca6ceb933807b531f36b48ed12
MD5 247e3b4c26c2f0f2af899547db62d166
BLAKE2b-256 96dc413660a6f39d4c4c50a752b349011988a72c5da5d937f3a61e7f5177e922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for as_op_doubleweave-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30157d5f9e4232428ccb35bdfd636994645c0fb73e14cae214fe4295b4f5d944
MD5 ac1c1646d5bf448fd2de25068bc40bb7
BLAKE2b-256 67661622878a25e226099c6d79ea6b6612006065f4b1a834b79517d4a000264c

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