semvec/pypi-packages huggingface dataset:
ossStudy 0.0.7
oss dev study

# 패키지 설명
이 패키지는 자주사용하는 **numpy, pandas, matplotlib 라이브러리** 3개가 들어가 있습니다.

또한, **today 함수**와**lmsSite 함수**가 들어 있습니다.

**today 함수**는 **today(a,b)**로 사용하며 a : 월 , b : 일 을 넣어 오늘 코딩한 날짜를 출력할 수 있습니다.

**lmsSite 함수**는 코딩중에 모르는 잊어버린 개념을 매번 구글에서 동아대 lms를 칠 필요 없이 **lmsSite()** 만 치면 바로 접속할 수 있습니다.
rttm-manager 0.1.8
Add your description here
Requires Python: >=3.10

# RTTM Exporter and Importer

## Example

1. Emport RTTM

```python
from rttm_manager import import_rttm

file_name = "example.rttm"

rttm_list = import_rttm(file_name)
```

2. Export RTTM

```python
from rttm_manager import RTTM
from rttm_manager import export_rttm

rttms = [
    RTTM(
        type="SPEAKER",
        file_id="sample",
        channel_id=1,
        turn_onset=9.00,
        turn_duration=1.00,
        speaker_name="speech",
        orthography_field=None,
        speaker_type=None,
        confidence_score=0.00,
        signal_lookahead_time=0.0,
    )
]*3

file_name = "example.rttm"

export_rttm(rttms, file_name)
"""
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
"""

```

## Installation

```bash
pip install rttm_manager
```
castepinput 0.1.10
Base module of castepinput
Requires Python: >=3.8

A simple CASTEP input files parser/writer
==========================
This package provide a basic framework for read/write input files of CASTEP.
There is already a excellent reader/writer implemented in [ase](https://gitlab.com/ase/ase)
but they are ortentated to work with the `Atoms` and `Calculator` classes in `ase`.
It also requires a CASTEP binary to exist to work.
This package aim to provide a more generic framework with minimum dependency for
simple (but important) tasks of writing and reading inputs files of CASTEP.


Usage
------
The two classes to be used for reading/writing inputs are `ParamInput` and `CellInput`.
Keyword-value pairs can be set the same as dictionaries.
For example:

```python
from castepinput import CellInput, ParamInput, Block
# ParamInput is in fact just a subclass of OrderedDict
param = ParamInput(cut_off_energy=300, task="singlepoint")
param["opt_strategy"] = "speed"

# Use the Block class to signal that it is a BLOCK
# The following line sets the positions_abs
cell = CellInput(positions_abs=Block(["C 0 0 0", "C 1 0 0"])
```

The two classes use simple string formatting when writing out the content.
See the following code as example.
```python
cell = CellInput(snap_to_symmetry=True)

# Should give 'snap_to_symmetry : True'
cell.get_string()

# Should give 'symmetry_genreate : true'
cell['snap_to_symmetry'] = 'true'
cell.get_string()

# Not all CASTEP keyword requires a value
# Use "" as the value will result just a keyword on a line
cell['symmetry_generate'] = ''
# Should give a string with a line 'symmetry_generate'
cell.get_string()

# Set cell and positions use the set methods
cell.set_cell([10 ,10 , 10])
cell.set_positions(["O", "O"], [[0, 0, 0], [1.4, 0, 0]])
# Save to file
cell.save("O2.cell")
```

To initialize from a existing param/cell file, use the `ParamInput.from_file` method.
```python
cell = CellInput.from_file("O2.cell")
# This should give [[10, 0, 0], [0, 10, 0], [0, 0, 10]]
cell.get_cell()

# The value returned should be "" to be consistent with setting
cell["symmetry_generate"]
```

We also try to be smart and convert string into python types where it is possible.
Supported types are integer, floats and 1-d arrays made of integer/floats.
These coversions can be avoided by using `ParamInput.from_file(filename, plain=True)` when loading files.