semvec/pypi-packages huggingface dataset:
csg2csg 0.0.30
Convert CSG geometry into different formats

[![CircleCI](https://circleci.com/gh/makeclean/csg2csg.svg?style=svg)](https://circleci.com/gh/makeclean/csg2csg)

# csg2csg
A tool to translate common Monte Carlo geometry formats between each other.

## How to use
Right now the code is petty rough.

Install using pip
``pip3 install csg2csg --user``

Run from the terminal with ``csg2csg -i filename -f format`` where filename is the input filename and format is the file format of the input file. Options for the file format include several neutronics codes [mcnp, serpent, openmc, phits, fluka] each is at a different level of completeness.

The default is to attempt to translate the input file into all neutronics codes but users can specify which codes with the ``-o`` flag.

To see all the run options type ``csg2csg -h`` in the terminal

## Caveats
Several! Right now only MCNP can be read, and then written to MCNP Serpent and OpenMC. 
When the file can be read only a subset of MCNP surfaces can be read

MCNP Surfaces Supported
 - P,PX,PY,PZ
 - S SO SX  SY SZ
 - CX CY CZ C/X C/Y C/Z
 - SQ
 - GQ
 - KX, KY, KZ
 - TX TY TZ
 - Macrobodies - RPP, SPH and RCC 
 - X, Y, Z - one and two coefficent only


MCNP Surfaces Not Yet Supported
 - X, Y, Z - three coefficient
 - Macrobodies - BOX, RHP, HEX, REC, TRC, ELL, WEB, ARB

Tranforms
 - Are read and interpretted, but nothing is done with them, in the future codes that support cell transformations will use it, but right now MCNP is the only code that does surface transformations
ergonomics-metrics 0.4.3
Ergonomics metrics

# Ergonomics
Ergonomics metrics: REBA score

<img src="https://raw.githubusercontent.com/rs9000/ergonomics/master/Resources/pose.gif" width="600"></th>


### Installation

```
pip install ergonomics-metrics
```

### Example

```python
from ergonomics.reba import RebaScore
import requests
import numpy as np
import json

url = 'https://www.dropbox.com/s/e72lwn9n9gkoygj/ergonomics.json?dl=1'
r = requests.get(url)
sample_pose = np.array(r.json()['sample_pose'])

rebaScore = RebaScore()

body_params = rebaScore.get_body_angles_from_pose_right(sample_pose)
arms_params = rebaScore.get_arms_angles_from_pose_right(sample_pose)

rebaScore.set_body(body_params)
score_a, partial_a = rebaScore.compute_score_a()

rebaScore.set_arms(arms_params)
score_b, partial_b = rebaScore.compute_score_b()

score_c, caption = rebaScore.compute_score_c(score_a, score_b)

print("Score A: ", score_a, "Partial: ", partial_a)
print("Score A: ", score_b, "Partial: ", partial_b)
print("Score C: ", score_c, caption)

```

### Test


```
Pose Left

Neck Score: 2
Trunk Score: 2
Legs Score: 2
Upper Arm Score: 1
Lower Arm Score: 2
Wrist Score: 3

A Score: 4
B Score: 3
C score: 4
REBA score: 4

Pose Right

Neck Score: 2
Trunk Score: 2
Legs Score: 2
Upper Arm Score: 1
Lower Arm Score: 2
Wrist Score: 2

A Score: 4
B Score: 2
C score: 4
REBA score: 4

Rank
[0]'Negligible Risk',
[2-3]'Low Risk. Change may be needed',
[4-7]'Medium Risk. Further Investigate. Change Soon',
[8-10]'High Risk. Investigate and Implement Change',
[11+]'Very High Risk. Implement Change'
```
basepackage 0.1.1
This package includes some, for me, helpful small things.
Requires Python: >=3.6

Hi!
This package can be used to shorten some commands from tkinter and colorama.
As so, 

import basepackage.module


Use:
-basepackage.module.pa(arg1: f for fore, b for back, s for style, colors first characters each, but k for black and l for blue. d for dim, h for bright and n for normal, c or r or clear or reset to reset all style after printing the word. The word in arg2 will be printed)
-basepackage.module.p(arg1: --- to reset style and to mark text behind, without --- only print text and do not reset.)

Use:
-basepackage.module.geninf(): to get sys, node, release, version, machine, processor
-basepackage.module.bt(): to get bt.year, bt.month, bt.day, bt.hour, bt.minute, bt.second
-basepackage.module.cpucores(): to get pcores and lcores
-basepackage.module.cpufreq(): to get maxfreq, minfreq, curfreq
-basepackage.module.cpuusage(): to get cpuusge
-basepackage.module.memory(): to get totmem,avamem,usdmem
-basepackage.module.swap(): to get totswap, avaswap, usdswap

Use:
basepackage.module.error/help/info/askokcancel/askyesno/askyesnocancel/askretrycancel/askquestion(name, text)
to get answer [short for tkinter messagebox]

Use:
basepackage.module.ptest(number to test if primenumber or not)
to get n for not a primenumber and p for primenumber

Use:
basepackage.module.rstrng(lenght)
to get random string with digits, special characters and letters

This package was written on Linux Debian 10.2 with use of the GNOME Terminal, python 3.7.4 64-bit, base anaconda, and Visual Studio Code.