Code Monkey home page Code Monkey logo

compas_wood's Introduction

compas_wood

Read the documentation

Getting started with this project

Setup code editor

  1. Open project folder in VS Code
  2. Select python environment for the project
  3. First time using VS Code and on Windows? Make sure select the correct terminal profile: Ctrl+Shift+P, Terminal: Select Default Profile and select Command Prompt.

All terminal commands in the following sections can be run from the VS Code integrated terminal.

First steps with git

  1. Go to the Source control tab
  2. Make an initial commit with all newly created files

First steps with code

  1. Install the newly created project

     pip install -e .
    
  2. Install it on Rhino

     python -m compas_rhino.install
    

Code conventions

Code convention follows PEP8 style guidelines and line length of 120 characters.

  1. Check adherence to style guidelines

     invoke lint
    
  2. Format code automatically

     invoke format
    

Documentation

Documentation is generated automatically out of docstrings and RST files in this repository

  1. Generate the docs

     invoke docs
    
  2. Check links in docs are valid

     invoke linkcheck
    
  3. Open docs in your browser (file explorer -> dist/docs/index.html)

Testing

Tests are written using the pytest framework

  1. Run all tests from terminal

     invoke test
    
  2. Or run them from VS Code from the Testing tab

Developing Grasshopper components

We use Grasshopper Componentizer to develop Python components that can be stored and edited on git.

  1. Build components

     invoke build-ghuser-componentspip
    
  2. Install components on Rhino

     python -m compas_rhino.install
    

Publish release

Releases follow the semver versioning convention.

  1. Create a new release

     invoke release major
    

compas_wood's People

Contributors

dependabot[bot] avatar petrasvestartas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

compas_wood's Issues

Could not find a version that satisfies the requirement nptyping (from compas-wood) (from versions: none)

Describe the bug
Could not find a version that satisfies the requirement nptyping (from compas-wood) (from versions: none)
I have followed all the provided instructions, but I am still having trouble with installation of compas_wood

To Reproduce
(base) C:\Windows\System32>conda activate wood-dev

(wood-dev) C:\Windows\System32>cd C:\IBOIS57_code\Software\Python

(wood-dev) C:\IBOIS57_code\Software\Python>git clone https://github.com/petrasvestartas/compas_wood.git
Cloning into 'compas_wood'...
remote: Enumerating objects: 41367, done.
remote: Counting objects: 100% (2838/2838), done.
remote: Compressing objects: 100% (1046/1046), done.
remote: Total 41367 (delta 1817), reused 2784 (delta 1765), pack-reused 38529
Receiving objects: 100% (41367/41367), 946.09 MiB | 11.78 MiB/s, done.
Resolving deltas: 100% (17757/17757), done.
Updating files: 100% (843/843), done.

(wood-dev) C:\IBOIS57_code\Software\Python>cd compas_wood

(wood-dev) C:\IBOIS57_code\Software\Python\compas_wood>pip install -e .
Obtaining file:///C:/IBOIS57/_code/Software/Python/compas_wood
Preparing metadata (setup.py) ... done
Requirement already satisfied: compas in c:\users\lynn\appdata\local\anaconda3\envs\wood-dev\lib\site-packages (from compas-wood==1.0.0) (2.1.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/nptyping/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/nptyping/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/nptyping/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/nptyping/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/nptyping/
Could not fetch URL https://pypi.org/simple/nptyping/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/nptyping/ (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))) - skipping
INFO: pip is looking at multiple versions of compas-wood to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement nptyping (from compas-wood) (from versions: none)
ERROR: No matching distribution found for nptyping
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))) - skipping

Applying grip jpints (type 3) on all edges.

Hi,

I attempted to use Compass-wood for my assignment, but some of the generated grips are missing on certain edges. Could you please help me resolve this issue? I am currently using Rhino 7, so I can only utilize the older version of Compass-wood. i couldnt attache relevent grasshopper files hier.

Thank you.
compass wood

ModuleNotFoundError: No module named 'data_set_plates'

Describe the bug
ModuleNotFoundError: No module named 'data_set_plates'

To Reproduce
Steps to reproduce the behavior:

from compas_wood.joinery import joints
import data_set_plates
from compas_wood.viewer_helpers import display

def test_joints():
input = data_set_plates.ss_24
element_pair_list, joint_areas_polylines, joint_types = joints(input,0)
display(input, joint_areas_polylines, None, 0.01,0,0,0, False,joint_types)

Desktop (please complete the following information):

  • OS: Windows 10
  • Python version: 3.8.17
  • Python package manager: conda

Error in some nodes

Describe the bug
I have installed the addon as instructed. The nodes in the solver panel of the addon are red with an error.
The error : "Error begin run: No module named 'wood_nano.conversions_python' [9:1]"

To Reproduce
Steps to reproduce the behavior:
I am not sure if it's possible for you to reproduce. Because by just placing the node on the canvas I get error.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Desktop (please complete the following information):

  • OS: windows 10 Enterprise
  • Python version 3.11.8
  • Python package manager pip

Additional context

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.