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.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

structure_generator-0.0.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: structure_generator-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for structure_generator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3d1d6e63536d745744bc7ca47d46d3a769c4adf0ff7bef026091c536c4ae0b6c
MD5 7c9b8ada4f3d7de47dc7f4eee8fc1d38
BLAKE2b-256 c09c956dc12034e26536a8c41e9cac05fc7d929c087fa33bb97e4c23150c10bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for structure_generator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9228b892445d7cab1d00b479ba298a35b1d271b237c294bd898d4699e50cc06a
MD5 2ba6eb9e61ae211f34d1b2509f849e64
BLAKE2b-256 96d44c76f0ef4b06089583b464226ecbbebde30dee894470dad855db93fd4430

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