fmridenoise package

Submodules

fmridenoise.__main__ module

fmridenoise.__main__.compare(args: argparse.Namespace) → None
fmridenoise.__main__.dummy(args)
fmridenoise.__main__.get_parser() → argparse.ArgumentParser

Creates parser for main script. :return: argparse.ArgumentParser

fmridenoise.__main__.main() → int
fmridenoise.__main__.parse_pipelines(pipelines_args: str = 'all') → set

Parses all possible pipeline options: :param pipelines_args: set or str, only valid string argument is ‘all’. If argument is set it can containing both names of pipelines from fmridenoise.pipelines directory or path(s) to valid json file(s) containing of valid pipeline description. :return: set of valid pipelines paths.

fmridenoise._version module

Git implementation of _version.py.

exception fmridenoise._version.NotThisMethod

Bases: Exception

Exception raised if a method is not valid for the current scenario.

class fmridenoise._version.VersioneerConfig

Bases: object

Container for Versioneer configuration parameters.

fmridenoise._version.get_config()

Create, populate and return the VersioneerConfig() object.

fmridenoise._version.get_keywords()

Get the keywords needed to look up the version information.

fmridenoise._version.get_versions()

Get version information or return default if unable to do so.

fmridenoise._version.git_get_keywords(versionfile_abs)

Extract version information from the given file.

fmridenoise._version.git_pieces_from_vcs(tag_prefix, root, verbose, run_command=<function run_command>)

Get version from ‘git describe’ in the root of the source tree.

This only gets called if the git-archive ‘subst’ keywords were not expanded, and _version.py hasn’t already been rewritten with a short version string, meaning we’re inside a checked out source tree.

fmridenoise._version.git_versions_from_keywords(keywords, tag_prefix, verbose)

Get version information from git keywords.

fmridenoise._version.plus_or_dot(pieces)

Return a + if we don’t already have one, else return a .

fmridenoise._version.register_vcs_handler(vcs, method)

Create decorator to mark a method as the handler of a VCS.

fmridenoise._version.render(pieces, style)

Render the given version pieces into the requested style.

fmridenoise._version.render_git_describe(pieces)

TAG[-DISTANCE-gHEX][-dirty].

Like ‘git describe –tags –dirty –always’.

Exceptions: 1: no tags. HEX[-dirty] (note: no ‘g’ prefix)

fmridenoise._version.render_git_describe_long(pieces)

TAG-DISTANCE-gHEX[-dirty].

Like ‘git describe –tags –dirty –always -long’. The distance/hash is unconditional.

Exceptions: 1: no tags. HEX[-dirty] (note: no ‘g’ prefix)

fmridenoise._version.render_pep440(pieces)

Build up version string, with post-release “local version identifier”.

Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged build and then dirty it, you’ll get TAG+0.gHEX.dirty

Exceptions: 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty]

fmridenoise._version.render_pep440_old(pieces)

TAG[.postDISTANCE[.dev0]] .

The “.dev0” means dirty.

Exceptions: 1: no tags. 0.postDISTANCE[.dev0]

fmridenoise._version.render_pep440_post(pieces)

TAG[.postDISTANCE[.dev0]+gHEX] .

The “.dev0” means dirty. Note that .dev0 sorts backwards (a dirty tree will appear “older” than the corresponding clean one), but you shouldn’t be releasing software with -dirty anyways.

Exceptions: 1: no tags. 0.postDISTANCE[.dev0]

fmridenoise._version.render_pep440_pre(pieces)

TAG[.post0.devDISTANCE] – No -dirty.

Exceptions: 1: no tags. 0.post0.devDISTANCE

fmridenoise._version.run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None)

Call the given command(s).

fmridenoise._version.versions_from_parentdir(parentdir_prefix, root, verbose)

Try to determine the version from the parent directory name.

Source tarballs conventionally unpack into a directory that includes both the project name and a version string. We will also support searching up two directory levels for an appropriately named parent directory

Module contents