semvec/pypi-packages huggingface dataset:
tworg 0.1.0
Convert TiddlyWiki tiddler files to Org Mode
License: MIT
Requires Python: >=3.9,<4.0

# tworg

This is a small program to convert [TiddlyWiki](https://tiddlywiki.com/) tiddler (`*.tid`) files into [Org Mode](https://orgmode.org/) files.

This is not at all production-ready and was written as a one-off thing to convert my TiddlyWiki into a set of org files. As such, it makes a few assumptions:

- The only metadata it preserves in the org files are `TITLE`, `AUTHOR`, and `TAGS`.
- It replaces links to other tiddlers with Org-roam links. Thus, it assumes you are using [Org-roam](https://www.orgroam.com/).
- Definitely not 100% coverage of the TiddlyWiki markup syntax.

## Usage

``` shell
usage: tworg [-h] [-o OUTPUT] tiddler [tiddler ...]

Convert .tid TiddlyWiki files into Org Mode files.

positional arguments:
  tiddler               Tiddlers to convert

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Directory to write org files to
```

Example, converting all TiddlyWiki files in `~/tiddlywiki/` to Org Mode files in `~/org/`:

``` shell
tworg -o ~/org/ ~/tiddlywiki/*.tid
```
spens 1.0.0
Load an ascii .spe file as a numpy array.
License: MIT
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/heprops.svg)](https://badge.fury.io/py/spe)

`spens` is a simple python package that does one thing: loads an ascii .spe file containing neutron scattering (NS) from disk and return `numpy` arrays containing the wavevector (Q), energy (E), scattering intensity (S) and error (ΔS).

## Supported Python Versions
Python >= 3.6 (for f-strings)

## Installation
To install via pip:

    pip install spens

Or from within a notebook:

```python
import sys
!{sys.executable} -m pip install spens
```

## Usage
The library implements a single function `load_spe` which takes the filename of a `.spe` file and return `numpy` arrays.

```python
import spesns
import numpy as np

# load the data
Q,E,S,ΔS = spe.load_file(f'/path/to/scattering/file.spe')

# create meshes for plotting
Emesh,Qmesh = np.meshgrid(E,Q)
```

## Support

The creation of this software was supported in part by the National Science Foundation under Award Nos. DMR-1808440 and DMR-1809027.

[<img width="100px" src="https://www.nsf.gov/images/logos/NSF_4-Color_bitmap_Logo.png">](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1808440)