Skip to main content

a simple layout generator project

Project description

[![Work in Repl.it](https://classroom.github.com/assets/work-in-replit-14baed9a392b3a25080506f3b7b6d57f295ec2978f6f33ec97e36a161684cbe9.svg)](https://classroom.github.com/online_ide?assignment_repo_id=3611573&assignment_repo_type=AssignmentRepo) # simplelayout-generator

本次作业将实现生成器的数据生成部分,也就是 1-simplelayout-cli 中的主要逻辑部分。同时考察 package、module 的相关知识。

## 要求

  • 目录结构为

` simplelayout │ ├─cli │ │ └─__init__.py │ │ └─cli_generate.py │ ├─generator │ │ └─__init__.py │ │ └─core.py │ │ └─utils.py `

  • 符合 PEP 8 代码规范

  • 将所需第三方 package 放到 requirements.txt

  • 按照 TODO `提示完成相应功能点 1. `/simplelayout/cli/cli_generate.py 2. /simplelayout/cli/__init__.py 3. /simplelayout/generator/core.py 4. /simplelayout/generator/utils.py 5. /simplelayout/__main__.py

  • 通过相应单元测试

  • 目标:将`simplelayout`以脚本方式运行,接口参数与作业 1-simplelayout-CLI 一致,即

    `bash python -m simplelayout --board_grid 100 --unit_grid 10 --unit_n 3 --positions 1 15 33 --outdir dir1/dir2 --file_name example `

## 参考

## 评分标准

要点 | 分值 |
:—————: | :—: |
代码规范 | 1 |
generate_matrix() | 2 |
main() | 2 |
save_matrix() | 1 |
save_fig() | 1 |
make_dir() | 1 |
总分 | 8 |

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

simplelayout-aoweiie-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distributions

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

simplelayout_aoweiie-1.0.0-py3.7.egg (9.4 kB view details)

Uploaded Egg

simplelayout_aoweiie-1.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file simplelayout-aoweiie-1.0.0.tar.gz.

File metadata

  • Download URL: simplelayout-aoweiie-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for simplelayout-aoweiie-1.0.0.tar.gz
Algorithm Hash digest
SHA256 694954662037db01270de6be47df0070e40aeac4553c275f1e71e689547523d5
MD5 20d721d894d0654d056808a192a6f2af
BLAKE2b-256 fed86ec4c3cf7ba5b8b0803f6b508ebf014c6c91ce804c4ee1269f449ab0f438

See more details on using hashes here.

File details

Details for the file simplelayout_aoweiie-1.0.0-py3.7.egg.

File metadata

  • Download URL: simplelayout_aoweiie-1.0.0-py3.7.egg
  • Upload date:
  • Size: 9.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for simplelayout_aoweiie-1.0.0-py3.7.egg
Algorithm Hash digest
SHA256 f4a3f4964e1324c86454f999e0d8b57e658d22699a7b825a41b686357f354363
MD5 a63f28730487306e14f509875346ed98
BLAKE2b-256 25b58f2fb7de1171a39305fc7ceaa2350038201615b79e30170875b8fbc4f83f

See more details on using hashes here.

File details

Details for the file simplelayout_aoweiie-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: simplelayout_aoweiie-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for simplelayout_aoweiie-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90f86ce0b1149e831372fc75fb880c985980728d95332ad90a7bb4fbe2988342
MD5 5213bfc276f8ec0266b5e7a000454dd0
BLAKE2b-256 c2ecc28e9cce9a3787858523f9105e628718362f48249b2754538bd729c66fdc

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