Skip to main content

This is a tool to generate eta and comp structure data.

Project description

sturcture_generator

Instruction

This is a package designed to generate eta/comp structures, consisting of four modules. In the basic module, there are functions for generating 3D data with various distributions and functions for writing data to files. The eta module contains functions for generating eta data, the comp module includes functions for generating comp data, and in the scripts module, there are functions that can be executed via the command line.

How to use

In the pyproject.toml file, a command-line command generate_structure is defined, with its detailed implementation specified in the scripts/generate_structure.py file. It accepts a parameter indicating the location of the input.toml file and ultimately generates eta/comp structural data.

How to add functionality

If we want to add new functionality, we can utilize the basic functionalities within the basic module or add new functionalities to it. Subsequently, we can introduce a new package under the structure_generator, employing the basic functionalities to fulfill our requirements. Finally, we define functions for command-line invocation in the scripts directory, and we can pass command-line parameters through argparser package. It's important to note that the command-line configuration should be specified in the pyproject.toml file.

# pyproject.toml
[project.scripts]
generate_structure = structure_generator.generate_sturcture

How to build a package

pacakge build tutorial

build construction

If you want to build the package, run the following commands in the directory where the pyproject.toml is located, depending on the operating system. The built package will appear in the dist folder.

# windows
py -m build
# Unix/macOs
python3 -m build

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

structure_generator-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

structure_generator-0.0.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file structure_generator-0.0.2.tar.gz.

File metadata

  • Download URL: structure_generator-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for structure_generator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fa47fa1f6224da9834d959f275d076cb8a82a1761eb9dbcd2e2aab33e8826360
MD5 7d2d4657919a0193df44472d32fe184a
BLAKE2b-256 496fb7ef666272139ad94579faa4a7e57397fa29cda07052e319d5d090da3054

See more details on using hashes here.

File details

Details for the file structure_generator-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for structure_generator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8c423ff54786ec142c48408cb1d29078b21c0323ca9c05479dbe59c2bb6590
MD5 2f58a7113ee773b0806ffaae36517b4f
BLAKE2b-256 f3fbbf5e8a59b3249a294b129907db0a0d6f543cbdf00eee8f183ab6561faf48

See more details on using hashes here.

Supported by

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