|
|
@ -5,22 +5,16 @@ Parsing the numerical output from Sensovations Sensospot image analysis. |
|
|
|
|
|
|
|
|
|
|
|
__version__ = "0.4.0" |
|
|
|
__version__ = "0.4.0" |
|
|
|
|
|
|
|
|
|
|
|
VERSION_TABLE_NAME = f"v{__version__}".replace(".", "_") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from pathlib import Path |
|
|
|
from pathlib import Path |
|
|
|
|
|
|
|
|
|
|
|
import click |
|
|
|
import click |
|
|
|
|
|
|
|
|
|
|
|
from .parser import ( # noqa: F401 |
|
|
|
from .parser import ( # noqa: F401 |
|
|
|
CACHE_FILE_NAME, |
|
|
|
|
|
|
|
parse_file, |
|
|
|
parse_file, |
|
|
|
parse_folder, |
|
|
|
parse_folder, |
|
|
|
process_folder, |
|
|
|
|
|
|
|
parse_multiple_files, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
from .parameters import ExposureInfo # noqa: F401 |
|
|
|
from .parameters import ExposureInfo, get_measurement_params # noqa: F401 |
|
|
|
from .normalisation import split_channels, normalize_channel # noqa: F401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command() |
|
|
|
@click.command() |
|
|
@ -38,7 +32,7 @@ from .normalisation import split_channels, normalize_channel # noqa: F401 |
|
|
|
"-o", |
|
|
|
"-o", |
|
|
|
"--outfile", |
|
|
|
"--outfile", |
|
|
|
default="raw_data.h5", |
|
|
|
default="raw_data.h5", |
|
|
|
help="Output file path, relative to source dir", |
|
|
|
help="Output file name", |
|
|
|
) |
|
|
|
) |
|
|
|
def run(source, outfile): |
|
|
|
def run(source, outfile): |
|
|
|
source_path = Path(source) |
|
|
|
source_path = Path(source) |
|
|
|