티스토리 뷰
Intro
- Editor : sublime text3
- python 3.9.1
- nazca 0.5.12
- pyclipper 1.2.1
- klayout layout viewer download : www.klayout.de/build.html
Download
- download site : nazca-design.org/download/
# pip3 install nazca 설치 시 PyPi nazca 2.0.2 module과 다르니 참고(pypi.org/project/nazca/2.0.2/)
# 주의!! : "logilab"의 "Python library for data alignment"가 아니고 nazca-design.org의 "Nazca Design", pip3 show nazca로 확인
- Install guide : nazca-design.org/installation/
# windows에서 anaconda + spyder + Jupytor Notebook 설치 방법
Tree of Download file : nazca-0.5.12
.
├── PKG-INFO
├── README.txt
├── nazca
└── setup.py
Install
download path : /Users/[yourID]/Downloads/nazca-0.5.12 or ~/Downloads/nazca-0.5.12
$ pip3 install "~/Downloads/nazca-0.5.12"
# pip3 install "PATH" 입력 시 setup.py가 실행
# 설치 경로 : /usr/local/lib/python3.9/site-packages 하위 경로에 nazca와 nazca-0.5.12.dist-info가 설치됨
$ pip3 install pyclipper
install 확인
$ pip3 show nazca
Name: nazca
Version: 0.5.12
Summary: Nazca Design
Home-page: http://nazca-design.org
Author: Ronald Broeke, Xaveer Leijtens
Author-email: R.G.Broeke@gmail.com, X.Leijtens@gmail.com
License: AGPLv3+
Location: /usr/local/lib/python3.9/site-packages
Requires: IPython, numpy, pillow, pyyaml, scipy, matplotlib, pandas, svgwrite
Required-by:
# 잘못 설치된 예 : pip3 uninstall nazca로 제거 후 위와 같이 재설치 GoGo~
$ pip3 show nazca
Name: nazca
Version: 2.0.2
Summary: Python library for data alignment
Home-page: https://www.logilab.org/project/nazca
Author: Logilab
Author-email: contact@logilab.fr
License: LGPL
Location: /usr/local/lib/python3.9/site-packages
Requires: numpy, scipy, python-dateutil, scikit-learn, lxml
Required-by:
Test Code : nazca-design.org/photonic-crystal-gds-array/
# -*- coding: utf-8 -*-
import nazca as nd
# example created by Bright Photonics
with nd.Cell('hole') as hole:
hole_shape = nd.geometries.circle(radius=0.05, N=8)
nd.Polygon(points=hole_shape).put(0)
hole.put(array=[20, [0.25, 0], 30, [0, 0.30]])
hole.put(5, -5, array=[40, [0.20, 0.10], 50, [0.10, 0.30]])
nd.export_gds()
klayout viewer 설치 및 python 사용 예시 : (macOS)[python] klayout 사용하기 : 내용 수정 2020.01.25
실행결과 확인 : klayout, nazca_export.gds
'python > Drawing' 카테고리의 다른 글
(macOS)[python] klayout, nazca, pyclipper install (0) | 2022.03.08 |
---|---|
(macOS)[python] klayout 사용하기 : 내용 수정 2020.01.25 (0) | 2020.03.17 |
- Total
- Today
- Yesterday
- 코로나19
- server
- git
- pyserial
- 자가격리
- DAQ
- COVID-19
- 확진
- MacOS
- Model
- r
- Python
- Templates
- SSH
- Regression
- ERP
- CSV
- sublime text
- Raspberry Pi
- github
- Pandas
- raspberrypi
- analysis
- 라즈베리파이
- arduino
- 코로나
- DS18B20
- template
- Django
- vscode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |