From cc0bcf3d99871c079b01c6f3dd16f8818ae8fd09 Mon Sep 17 00:00:00 2001 From: paulkorir Date: Tue, 3 Oct 2023 15:41:31 +0100 Subject: [PATCH] v0.9.0.dev2: minor corrections and cleanup --- sfftk/__init__.py | 2 +- sfftk/core/parser.py | 2 +- sfftk/unittests/test_readers.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sfftk/__init__.py b/sfftk/__init__.py index 1e1945d..fbda593 100644 --- a/sfftk/__init__.py +++ b/sfftk/__init__.py @@ -3,4 +3,4 @@ BASE_DIR = os.path.dirname(__file__) -SFFTK_VERSION = 'v0.9.0.dev1' +SFFTK_VERSION = 'v0.9.0.dev2' diff --git a/sfftk/core/parser.py b/sfftk/core/parser.py index 3b947e0..815e351 100644 --- a/sfftk/core/parser.py +++ b/sfftk/core/parser.py @@ -428,7 +428,7 @@ starcrop_prep_parser = prep_subparsers.add_parser( 'starcrop', description='Truncate a composite star file to the specified number of rows (default: 100)', - help='split a composite star file into individual star files', + help='truncate a star file to have as many rows as specified (exluding header)', ) add_args(starcrop_prep_parser, config_path) add_args(starcrop_prep_parser, shipped_configs) diff --git a/sfftk/unittests/test_readers.py b/sfftk/unittests/test_readers.py index b0c8684..332aaa5 100644 --- a/sfftk/unittests/test_readers.py +++ b/sfftk/unittests/test_readers.py @@ -583,7 +583,9 @@ def test_compute_affine_transforms(self): star_reader = starreader.StarReader() star_reader.parse(TEST_DATA_PATH / 'segmentations' / 'test_data4.star') row = star_reader.tables['_rln'][0] + print(row) transform_zyz = row.to_affine_transform() # default axes + print(transform_zyz) psi = radians(30) theta = radians(30) phi = radians(30)