semvec/pypi-packages huggingface dataset:
debayer-ohweier 0.0.1
Small toolkit to debayer and stack images.
Requires Python: >=3.6
Keywords: python

# Debayer Ohweier

Small toolkit to debayer and stack images. 

## How to capture images

Use the setting (Bayer) for taking the images.
![](micromanager_gui.png)

# Example

```python
from debayer_ohweier import debayer,get_gradient_stack,get_argmax, zstack,save_image,save_plot
import matplotlib.pyplot as plt
import numpy as np
import os
import glob


path='sample data' #Path to the tif-files from Microscope
im_paths=sorted(glob.glob(os.path.join(path,'*.tif')))

# load and debayer all files
ims=[]
for p in im_paths:
    im=debayer(path=p)
    ims.append(im)
    dirname,filename=os.path.split(p)
    save_image(im,os.path.join(dirname,'debayered',filename))
print('debayered')

# calc the gradient of all images. the gradient is highest for sharb edges in the image, hence, areas in Focus
a_grad_stack,a_grad_b_stack=get_gradient_stack(ims)
print('gradient')

# chose the image with the higest gradient per location to get height information
a_max_b=get_argmax(a_grad_b_stack)
a_max=get_argmax(a_grad_stack)
save_image(a_max,os.path.join(path,'stack','height.tif'))
save_plot(a_max,os.path.join(path,'stack','height.pdf'),pixelsize=800/60,s_unit='$\mu m$')
save_plot(a_max,os.path.join(path,'stack','height.svg'),pixelsize=800/60,s_unit='$\mu m$')
save_plot(a_max,os.path.join(path,'stack','height.png'),pixelsize=800/60,s_unit='$\mu m$')
print('argmax')

# Stack debayered images acording to height information
a_neu=zstack(ims,a_max_b,blur=True, blursize=30)
save_image(a_neu,os.path.join(path,'stack','stack.tif'))
save_image(a_neu,os.path.join(path,'stack','stack.jpg'))
print('zstack')
```

Developer: Jan Paschen <br> jan.paschen@ise.fraunhofer.de
acfc 2.2.0
Alacritty Colors to Foot Colors (Converter)
Requires Python: >=3.9,<4.0

# acfc

[![downloads/month](https://img.shields.io/pypi/dm/acfc)](https://pypi.org/project/acfc/)

[Alacritty](https://github.com/alacritty/alacritty) colors to
[Foot](https://codeberg.org/dnkl/foot) colors — Convert Alacritty's YAML color
configuration to Foot's INI color configuration.

## Installation

```
pip install acfc
```

## Usage

acfc accepts only one argument, i.e. a path to a YAML file. It'll then chuck out
its INI equivalent to the terminal. It can also read from stdin.

```
python -m acfc input.yml
```

- Input:
```yaml
colors:
  bright:
    black: '#555555'
    blue: '#bd93f9'
    cyan: '#8be9fd'
    green: '#50fa7b'
    magenta: '#ff79c6'
    red: '#ff5555'
    white: '#ffffff'
    yellow: '#f1fa8c'
  cursor:
    cursor: '#bbbbbb'
    text: '#ffffff'
  normal:
    black: '#000000'
    blue: '#bd93f9'
    cyan: '#8be9fd'
    green: '#50fa7b'
    magenta: '#ff79c6'
    red: '#ff5555'
    white: '#bbbbbb'
    yellow: '#f1fa8c'
  primary:
    background: '#1e1f29'
    foreground: '#f8f8f2'
  selection:
    background: '#44475a'
    text: '#ffffff'
```

- Output:
```ini
[cursor]
color=ffffff bbbbbb
[colors]
foreground=f8f8f2
background=1e1f29
regular0=000000
regular1=ff5555
regular2=50fa7b
regular3=f1fa8c
regular4=bd93f9
regular5=ff79c6
regular6=8be9fd
regular7=bbbbbb
bright0=555555
bright1=ff5555
bright2=50fa7b
bright3=f1fa8c
bright4=bd93f9
bright5=ff79c6
bright6=8be9fd
bright7=ffffff
selection-foreground=ffffff
selection-background=44475a
```

## Thanks to

- [configparser](https://github.com/jaraco/configparser) by Jason R. Coombs
- [pyaml](https://github.com/mk-fg/pretty-yaml) by Mike Kazantsev

## License

This neat little project is licensed under the MIT license.
tracardi-string-operations 0.6.0
This plug-in is to make a string operations like: lowercase remove spaces split and other
Requires Python: >=3.8
Keywords: tracardi,plugin

# String properties and transformations

The purpose of this plugin is return string properties and some transformations as upper case, etc.

# Configuration

This node requires configuration. 

You have to provide a path to string that needs to be transformed. 

```json
{
  "string": "event@path.to.data"
}
```

# Input payload

This node does not process input payload.

# Output

This plugin returns anobject with transformed string and all its properties such as: isdigit, isupper, etc.

## Available properties and transformations

* capitalize - Converts the first character to upper case
* casefold - Converts string into lower case
* isalnum - Returns True if all characters in the string are alphanumeric
* isalpha - Returns True if all characters in the string are in the alphabet 
* isascii - Returns True if all characters in the string are ascii characters
* isdecimal - Returns True if all characters in the string are decimals
* isdigit - Returns True if all characters in the string are digits
* isidentifier - Returns True if the string is an identifier
* islower - Returns True if all characters in the string are lower case
* isnumeric - Returns True if all characters in the string are numeric
* isprintable - Returns True if all characters in the string are printable
* isspace - Returns True if all characters in the string are whitespaces
* istitle - Returns True if the string follows the rules of a title
* isupper - Returns True if all characters in the string are upper case
* lstrip - Returns a left trim version of the string
* swapcase - Swaps cases, lower case becomes upper case and vice ver sa
* title - Converts the first character of each word to upper case
* upper - Converts a string into upper case
* lower - Converts a string into lower case
trardi-string-operations 0.6.0
This plug-in is to make a string operations like: lowercase remove spaces split and other
Requires Python: >=3.8
Keywords: tracardi,plugin

# String properties and transformations

The purpose of this plugin is return string properties and some transformations as upper case, etc.

# Configuration

This node requires configuration. 

You have to provide a path to string that needs to be transformed. 

```json
{
  "string": "event@path.to.data"
}
```

# Input payload

This node does not process input payload.

# Output

This plugin returns anobject with transformed string and all its properties such as: isdigit, isupper, etc.

## Available properties and transformations

* capitalize - Converts the first character to upper case
* casefold - Converts string into lower case
* isalnum - Returns True if all characters in the string are alphanumeric
* isalpha - Returns True if all characters in the string are in the alphabet 
* isascii - Returns True if all characters in the string are ascii characters
* isdecimal - Returns True if all characters in the string are decimals
* isdigit - Returns True if all characters in the string are digits
* isidentifier - Returns True if the string is an identifier
* islower - Returns True if all characters in the string are lower case
* isnumeric - Returns True if all characters in the string are numeric
* isprintable - Returns True if all characters in the string are printable
* isspace - Returns True if all characters in the string are whitespaces
* istitle - Returns True if the string follows the rules of a title
* isupper - Returns True if all characters in the string are upper case
* lstrip - Returns a left trim version of the string
* swapcase - Swaps cases, lower case becomes upper case and vice ver sa
* title - Converts the first character of each word to upper case
* upper - Converts a string into upper case
* lower - Converts a string into lower case
lsreader 0.1.47
A reader to extract LS-DYNA results
Requires Python: >=3.6
Keywords: ls-dyna,d3plot,binout,femzip

# LS-Reader Project

The LS-Reader is designed to read LS-DYNA results and can extract the data of more than 2000 such as stress, strain, id, history variable, effective plastic strain, number of elements, binout data and so on now. The LS-Reader provides an uniform interface for getting these data. For convenience, input parameters, like number of state, number of integration point, are designed as keyword arguments. More details please see [LS-Reader Tutorial][tutorial].



## How to use

```python
# D3plotReader
from lsreader import D3plotReader, DataType as dt

data_path = your/d3plot/file/path
dr = D3plotReader(data_path)

shell_stress = dr.get_data(dt.D3P_SHELL_STRESS, ist=0, ipt=1)
print(shell_stress[0].x())

shell_eps = dr.get_data(dt.D3P_SHELL_EFFECTIVE_PLASTIC_STRAIN, ist=0, ipt=1)
print(shell_eps[0])

thickness = dr.get_data(dt.D3P_SHELL_THICKNESS, ist=11)
print(thickness[0])

num_solid_element = dr.get_data(dt.D3P_NUM_SOLID)
print(num_solid_element)

# Get d3plot data by part
num_solid_pid_4 = dr.get_data(dt.D3P_NUM_SOLID, ipart_user=4)

shell_stress_pid_4 = dr.get_data(dt.D3P_SHELL_STRESS, ist=4, ipt=0, ipart_user=4)

# Get data by part set
num_shells = dr.get_data(dt.D3P_NUM_SHELL, ipartset_user=[1, 2])

# Get numpy array(numpy is required to be installed, using "pip install numpy")
shell_stress = dr.get_data(dt.D3P_SHELL_STRESS, ist=0, ipt=1, ask_for_numpy_array=True)
print(shell_stress)

# BinoutReader
from lsreader import BinoutReader, BINOUT_DataType as bdt

data_path = your/binout/file/path
br = BinoutReader(data_path)

branches = br.get_data(bdt.BINOUT_BRANCHES)
print(branches)

ids = br.get_data(bdt.BINOUT_NODOUT_IDS)
print(ids)
...
...
...

```



[Latest Tutorial][tutorial]

[The examples and documents for this project is available here][example].

[tutorial]: <https://github.com/LS-Reader/LS-Reader-Tutorial>
[example]: <http://ftp.lstc.com/anonymous/outgoing/lsprepost/LS-Reader/>