semvec/pypi-packages huggingface dataset:
epsie 1.0.0
An Embarrassingly Parallel Sampler for Inference Estimation.
Requires Python: >=3.6

EPSIE
=====

.. image:: https://zenodo.org/badge/165546154.svg
   :target: https://zenodo.org/badge/latestdoi/165546154
.. image:: https://github.com/cdcapano/epsie/workflows/build/badge.svg?branch=master
    :target: https://github.com/cdcapano/epsie/actions?query=workflow%3Abuild+branch%3Amaster
.. image:: https://coveralls.io/repos/github/cdcapano/epsie/badge.svg
    :target: https://coveralls.io/github/cdcapano/epsie
   
.. docs-start-marker-do-not-remove

EPSIE is a parallelized Markov chain Monte Carlo (MCMC) sampler for Bayesian
inference. It is meant for problems with complicated likelihood topology,
including multimodal distributions.  It has support for both parallel tempering
and nested transdimensional problems. It was originally developed for
gravitational-wave parameter estimation, but can be used for any Bayesian
inference problem requring a stochastic sampler.

EPSIE is in many ways similar to `emcee
<https://emcee.readthedocs.io/en/stable/>`_ and other bring-your-own-likelihood
Python-based samplers. The primary difference from emcee is EPSIE
is not an ensemble sampler; i.e., the Markov chains used by EPSIE do not
attempt to share information between each other. Instead, to speed convergence,
multiple jump proposal classes are offered that can be customized to the
problem at hand.  These include adaptive proposals that attempt to learn the
shape of the distribution during a burn-in period. The user can also easily
create their own jump proposals.

.. docs-end-marker-do-not-remove

For more information, see the documentation at:
https://cdcapano.github.io/epsie

Attribution
-----------
If you use EPSIE in your work, please cite DOI 10.5281/zenodo.5717225 for the latest version, or the DOI specific to the release you used. Authorship, citation format, and DOI for all versions are available at `Zenodo <https://doi.org/10.5281/zenodo.5717225>`_.
fsub 1.0.4
CLI SubRip editor
Requires Python: >=3.9

# fsub
`fsub` is a Python script for cleaning, editing and fixing a SubRip (.srt) file

# Installation
Through Python's pip:
```
pip install fsub
```

# Usage
```
usage: fsub [-h] [-f F] [-c] [-s MS] [-n] [-j] [-u] [-r | -p] [-b B] [-e E] file [file ...]

Fix, edit and clean SubRip (.srt) files.

positional arguments:
  file               list of input files (they all must be SubRip files)

optional arguments:
  -h, --help         show this help message and exit
  -f F, --config F   use F as the config file (by default, on Unix it is:
                     "$HOME/.config/fsubrc"; on Windows it is: "%APPDATA%\fsubrc")
  -r, --replace      edit files in-place (--join will delete joined files too), instead of the
                     default behavior of outputing results into files prefixed with "out-"
  -p, --stdout       dump results to stdout, and do not edit nor write any file

processing:
  Flags that specify an action to be taken. Many may be specified.

  -c, --clean        remove subtitles matching regular expressions listed in the config file
                     (this is the default behavior if no other flag is passed)
  -s MS, --shift MS  shift all subtitles by MS milliseconds, which may be positive or negative
  -n, --no-html      strip HTML tags from subtitles content
  -j, --join         join all files into the first, shifting their time accordingly
  -u, --cut-out      cut the specified section from the file(s) into new files

sectioning:
  Flags that specify a section to work in. They accept either a subtitle number or a time
  stamp in the SubRip format ("<hours>:<minutes>:<seconds>,<milliseconds>", where hours,
  minutes, seconds are 2-zero padded while milliseconds is 3-zero padded). fsub will not
  modify subtitles outside this range, except while joining the files.

  -b B, --begin B    specify section beginning (inclusive)
  -e E, --end E      specify section end (inclusive)
```

# Testing
In the project's root directory, run all the tests with:
```
python -m unittest tests
```
Or, just the unit/integration tests:
```
python -m unittest tests.unit
python -m unittest tests.integration
```

# Scripted API
An example of calling the program from Python:
```
import fsub

fsub.run('-c', 'test.srt')
```

# Features
- Fixes subtitle numbering
- Converts files to UTF-8 encoding
- Validates file structure
- May remove subtitles containing lines that match any regular expression listed in the config file (by default on Unix: `$HOME/.config/fsubrc`; on Windows: `%APPDATA%\fsubrc`)
- May shift the time of all subtitles
- May strip HTML
- May join files together
- May edit files in-place
- May cut sections out