tomwer 1.4.5__py3-none-any.whl → 1.4.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. orangecontrib/tomwer/__init__.py +4 -0
  2. orangecontrib/tomwer/tests/TestAcquisition.py +1 -3
  3. orangecontrib/tomwer/widgets/__init__.py +3 -23
  4. orangecontrib/tomwer/widgets/cluster/__init__.py +3 -23
  5. orangecontrib/tomwer/widgets/control/__init__.py +4 -23
  6. orangecontrib/tomwer/widgets/dataportal/__init__.py +5 -0
  7. orangecontrib/tomwer/widgets/debugtools/__init__.py +3 -23
  8. orangecontrib/tomwer/widgets/edit/__init__.py +3 -23
  9. orangecontrib/tomwer/widgets/other/__init__.py +3 -23
  10. orangecontrib/tomwer/widgets/reconstruction/__init__.py +3 -23
  11. orangecontrib/tomwer/widgets/stitching/__init__.py +4 -0
  12. orangecontrib/tomwer/widgets/visualization/__init__.py +3 -23
  13. tomwer/__init__.py +2 -1
  14. tomwer/app/__init__.py +1 -2
  15. tomwer/app/axis.py +1 -2
  16. tomwer/app/canvas.py +1 -2
  17. tomwer/app/diffframe.py +1 -2
  18. tomwer/app/imagekeyeditor.py +1 -2
  19. tomwer/app/imagekeyupgrader.py +1 -2
  20. tomwer/app/multicor.py +1 -2
  21. tomwer/app/multipag.py +1 -2
  22. tomwer/app/nabuapp.py +1 -2
  23. tomwer/app/nxtomoeditor.py +1 -2
  24. tomwer/app/patchrawdarkflat.py +1 -2
  25. tomwer/app/radiostack.py +1 -2
  26. tomwer/app/reducedarkflat.py +1 -2
  27. tomwer/app/samplemoved.py +1 -2
  28. tomwer/app/scanviewer.py +1 -2
  29. tomwer/app/sinogramviewer.py +1 -2
  30. tomwer/core/__init__.py +1 -2
  31. tomwer/core/cluster/__init__.py +1 -2
  32. tomwer/core/futureobject.py +1 -2
  33. tomwer/core/log/__init__.py +1 -2
  34. tomwer/core/process/cluster/supervisor.py +1 -2
  35. tomwer/core/process/reconstruction/axis/axis.py +1 -2
  36. tomwer/core/process/reconstruction/nabu/nabucommon.py +6 -5
  37. tomwer/core/process/reconstruction/saaxis/saaxis.py +1 -2
  38. tomwer/core/process/reconstruction/sadeltabeta/sadeltabeta.py +1 -2
  39. tomwer/core/utils/__init__.py +1 -2
  40. tomwer/core/utils/image.py +2 -2
  41. tomwer/gui/cluster/__init__.py +1 -2
  42. tomwer/gui/conditions/__init__.py +1 -2
  43. tomwer/gui/configuration/__init__.py +1 -2
  44. tomwer/gui/control/__init__.py +1 -2
  45. tomwer/gui/dataportal/__init__.py +1 -2
  46. tomwer/gui/debugtools/__init__.py +1 -2
  47. tomwer/gui/dialog/QDataDialog.py +1 -2
  48. tomwer/gui/dialog/QVolumeDialog.py +1 -2
  49. tomwer/gui/edit/__init__.py +1 -2
  50. tomwer/gui/imagefromfile.py +1 -2
  51. tomwer/gui/metadataloader.py +1 -2
  52. tomwer/gui/qconfigfile.py +1 -2
  53. tomwer/gui/qlefilesystem.py +1 -2
  54. tomwer/gui/reconstruction/__init__.py +1 -2
  55. tomwer/gui/reconstruction/nabu/nabuconfig/reconstruction.py +3 -2
  56. tomwer/gui/reconstruction/nabu/slices.py +3 -3
  57. tomwer/gui/settings.py +1 -2
  58. tomwer/gui/stackplot.py +1 -2
  59. tomwer/gui/stitching/__init__.py +1 -2
  60. tomwer/gui/utils/slider.py +1 -2
  61. tomwer/gui/visualization/__init__.py +1 -2
  62. tomwer/io/__init__.py +1 -2
  63. tomwer/version.py +1 -1
  64. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/METADATA +4 -3
  65. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/RECORD +69 -70
  66. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/WHEEL +1 -1
  67. orangecontrib/tomwer/tutorials/test_cor.ows +0 -19
  68. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/LICENSE +0 -0
  69. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/entry_points.txt +0 -0
  70. {tomwer-1.4.5.dist-info → tomwer-1.4.7.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,7 @@
1
+ """
2
+ Orange add-on for tomography
3
+ """
4
+
1
5
  import logging
2
6
 
3
7
  from . import state_summary # noqa F401
@@ -1,6 +1,4 @@
1
- """Full tomwer test suite.
2
-
3
- """
1
+ """Full tomwer test suite."""
4
2
 
5
3
  from __future__ import annotations
6
4
 
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets dedicated for tomography
3
+ """
24
4
 
25
5
  from ewoksorange.pkg_meta import get_distribution
26
6
 
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016-2021 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for remote processing through slurm
3
+ """
24
4
 
25
5
  NAME = "compute cluster"
26
6
 
@@ -1,26 +1,7 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets to 'control' the flow. Like defining input / output, stacking scans...
3
+ Those widget are not doing any 'core' processing.
4
+ """
24
5
 
25
6
  NAME = "control"
26
7
 
@@ -1,3 +1,8 @@
1
+ """
2
+ (Ewoks)Orange Widgets to 'control' the flow. Like defining input / output, stacking scans...
3
+ Those widget are not doing any 'core' processing.
4
+ """
5
+
1
6
  NAME = "data portal"
2
7
 
3
8
  ID = "orangecontrib.tomwer.widgets.dataportal"
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for debugging. To be used at your own risk and peril
3
+ """
24
4
 
25
5
  NAME = "debug tools"
26
6
 
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for NXtomo edition
3
+ """
24
4
 
25
5
  NAME = "edit HDF5 - NXTomo"
26
6
 
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for tomography not matching any other category
3
+ """
24
4
 
25
5
  NAME = "other"
26
6
 
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for tomography core processing
3
+ """
24
4
 
25
5
  NAME = "reconstruction"
26
6
 
@@ -1,3 +1,7 @@
1
+ """
2
+ (Ewoks)Orange Widgets for pre or post processing stitching
3
+ """
4
+
1
5
  NAME = "stitching"
2
6
 
3
7
  ID = "orangecontrib.tomwer.widgets.stitching"
@@ -1,26 +1,6 @@
1
- # coding: utf-8
2
- ###########################################################################
3
- # Copyright (C) 2016 European Synchrotron Radiation Facility
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
- #############################################################################
1
+ """
2
+ (Ewoks)Orange Widgets for tomography raw and processed data visualization
3
+ """
24
4
 
25
5
  NAME = "visualization"
26
6
 
tomwer/__init__.py CHANGED
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
  """
3
- tomwer tests
3
+ Applications and library for tomography processing.
4
+ Provides ewoks tasks, several GUI for nabu as several utils.
4
5
  """
5
6
 
6
7
  from __future__ import absolute_import, division, print_function
tomwer/app/__init__.py CHANGED
@@ -1,2 +1 @@
1
- """This package contains all the applications that can be launched from 'tomwer'
2
- """
1
+ """This package contains all the applications that can be launched from 'tomwer'"""
tomwer/app/axis.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to compute the center of rotation of a scan
4
- """
3
+ """Application to compute the center of rotation of a scan"""
5
4
 
6
5
  import argparse
7
6
  import functools
tomwer/app/canvas.py CHANGED
@@ -1,5 +1,4 @@
1
- """Application to define a tomography workflow (also as know as 'ewoks-canvas' or 'orange canvas')
2
- """
1
+ """Application to define a tomography workflow (also as know as 'ewoks-canvas' or 'orange canvas')"""
3
2
 
4
3
  import logging
5
4
  import platform
tomwer/app/diffframe.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to display the difference between two frames.
4
- """
3
+ """Application to display the difference between two frames."""
5
4
 
6
5
  import argparse
7
6
  import logging
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to edit (key by key) the 'imagekey' value of a NXtomo ('imagekey' defines if a frame is a 'dark', 'flat' or a 'projection')
4
- """
3
+ """Application to edit (key by key) the 'imagekey' value of a NXtomo ('imagekey' defines if a frame is a 'dark', 'flat' or a 'projection')"""
5
4
  import argparse
6
5
  import logging
7
6
  import signal
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to edit (group by group) the 'imagekey' value of a NXtomo ('imagekey' defines if a frame is a 'dark', 'flat' or a 'projection')
4
- """
3
+ """Application to edit (group by group) the 'imagekey' value of a NXtomo ('imagekey' defines if a frame is a 'dark', 'flat' or a 'projection')"""
5
4
 
6
5
  import argparse
7
6
  import logging
tomwer/app/multicor.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to reconstruct a slice for a set of center of rotation value. Interface to nabu multicor
4
- """
3
+ """Application to reconstruct a slice for a set of center of rotation value. Interface to nabu multicor"""
5
4
 
6
5
  from __future__ import annotations
7
6
 
tomwer/app/multipag.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to reconstruct a slice with Paganin for a set of delta/beta values.
4
- """
3
+ """Application to reconstruct a slice with Paganin for a set of delta/beta values."""
5
4
 
6
5
  from __future__ import annotations
7
6
 
tomwer/app/nabuapp.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to reconstruct a slice with nabu
4
- """
3
+ """Application to reconstruct a slice with nabu"""
5
4
  import argparse
6
5
  import logging
7
6
  import signal
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to edit several entries of a NXtomo
4
- """
3
+ """Application to edit several entries of a NXtomo"""
5
4
 
6
5
  import argparse
7
6
  import logging
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to append dark of flat frames to an existing NXtomo
4
- """
3
+ """Application to append dark of flat frames to an existing NXtomo"""
5
4
 
6
5
  import argparse
7
6
  import logging
tomwer/app/radiostack.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to display scan radios as a stack
4
- """
3
+ """Application to display scan radios as a stack"""
5
4
  import argparse
6
5
  import logging
7
6
  import os
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to compute reduced darks and flats for a given scan
4
- """
3
+ """Application to compute reduced darks and flats for a given scan"""
5
4
 
6
5
  import argparse
7
6
  import logging
tomwer/app/samplemoved.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to display a couple of projections at 180 degree and estimate (by eye) if a sample has moved
4
- """
3
+ """Application to display a couple of projections at 180 degree and estimate (by eye) if a sample has moved"""
5
4
 
6
5
  import argparse
7
6
  import logging
tomwer/app/scanviewer.py CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to browse a given scan
4
- """
3
+ """Application to browse a given scan"""
5
4
 
6
5
  import argparse
7
6
  import logging
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- """Application to display a sinogram from a scan
4
- """
3
+ """Application to display a sinogram from a scan"""
5
4
 
6
5
  import argparse
7
6
  import logging
tomwer/core/__init__.py CHANGED
@@ -1,2 +1 @@
1
- """This package contains all the core functions / classes of tomwer
2
- """
1
+ """This package contains all the core functions / classes of tomwer"""
@@ -1,4 +1,3 @@
1
- """cluster related functions and classes (slurm...)
2
- """
1
+ """cluster related functions and classes (slurm...)"""
3
2
 
4
3
  from .cluster import SlurmClusterConfiguration # noqa F401
@@ -1,5 +1,4 @@
1
- """contains 'FutureTomwerObject'. Class used when computation is done asynchronously (when submitted to slurm for example)
2
- """
1
+ """contains 'FutureTomwerObject'. Class used when computation is done asynchronously (when submitted to slurm for example)"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,2 +1 @@
1
- """contains some log utils (used to notify processing advancement)
2
- """
1
+ """contains some log utils (used to notify processing advancement)"""
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- """module containing FutureSupervisorTask.
3
- """
2
+ """module containing FutureSupervisorTask."""
4
3
 
5
4
  from typing import Iterable
6
5
 
@@ -1,5 +1,4 @@
1
- """contain the AxisTask class
2
- """
1
+ """contain the AxisTask class"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,5 +1,4 @@
1
- """contain utils for score process
2
- """
1
+ """contain utils for score process"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -414,10 +413,12 @@ class _NabuBaseReconstructor:
414
413
  :return: results of the slurm run
415
414
  """
416
415
  if not isinstance(conf_file, str):
417
- raise TypeError(f"conf_file is expected to be a strg not {type(conf_file)}")
416
+ raise TypeError(
417
+ f"conf_file is expected to be a string not {type(conf_file)}"
418
+ )
418
419
  if not isinstance(config_to_dump, dict):
419
420
  raise TypeError(
420
- f"config_to_dump is expected to be a strg not {type(config_to_dump)}"
421
+ f"config_to_dump is expected to be a string not {type(config_to_dump)}"
421
422
  )
422
423
  if not is_slurm_available():
423
424
  raise RuntimeError("slurm not available")
@@ -450,7 +451,7 @@ class _NabuBaseReconstructor:
450
451
  job = SBatchScriptJob(
451
452
  slurm_config=cluster_config,
452
453
  script=(
453
- f"python3 -m {settings.NABU_FULL_FIELD_APP_PATH} {conf_file} --gpu_mem_fraction {gpu_mem_fraction} --cpu_mem_fraction {cpu_mem_fraction}",
454
+ f"python3 -m {settings.NABU_FULL_FIELD_APP_PATH} '{conf_file}' --gpu_mem_fraction {gpu_mem_fraction} --cpu_mem_fraction {cpu_mem_fraction}",
454
455
  ),
455
456
  script_path=os.path.join(self.scan.path, "slurm_scripts", script_name),
456
457
  clean_script=False,
@@ -1,5 +1,4 @@
1
- """contain the SAAxisProcess. Half automatic center of rotation calculation
2
- """
1
+ """contain the SAAxisProcess. Half automatic center of rotation calculation"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,5 +1,4 @@
1
- """contain the SADeltaBetaProcess. Half automatic best delta / beta finder
2
- """
1
+ """contain the SADeltaBetaProcess. Half automatic best delta / beta finder"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,2 +1 @@
1
- """Several core utils
2
- """
1
+ """Several core utils"""
@@ -116,8 +116,8 @@ def scale_img2_to_img1(
116
116
  else:
117
117
  raise ValueError("method not managed", method)
118
118
 
119
- vec0 = numpy.mat([[min0], [me0], [max0]])
120
- matr = numpy.mat(
119
+ vec0 = numpy.asmatrix([[min0], [me0], [max0]])
120
+ matr = numpy.asmatrix(
121
121
  [[min1 * min1, min1, 1.0], [me1 * me1, me1, 1.0], [max1 * max1, max1, 1.0]]
122
122
  )
123
123
  vec1 = inv(matr) * vec0
@@ -1,2 +1 @@
1
- """Widgets for remote processing
2
- """
1
+ """Widgets for remote processing"""
@@ -1,2 +1 @@
1
- """Widgets for conditions (filters to let a scan continue processing or not)
2
- """
1
+ """Widgets for conditions (filters to let a scan continue processing or not)"""
@@ -1,2 +1 @@
1
- """Widgets to define the configuration level we want to display (display only basic configuration/settings, advance...)
2
- """
1
+ """Widgets to define the configuration level we want to display (display only basic configuration/settings, advance...)"""
@@ -1,2 +1 @@
1
- """Widgets related to 'control' tasks (select a scan, convert a scan with nxtomomill...)
2
- """
1
+ """Widgets related to 'control' tasks (select a scan, convert a scan with nxtomomill...)"""
@@ -1,2 +1 @@
1
- """Widgets related to icat / drac
2
- """
1
+ """Widgets related to icat / drac"""
@@ -1,2 +1 @@
1
- """Widgets useful to debut a tomography workflow (generate random scan...)
2
- """
1
+ """Widgets useful to debut a tomography workflow (generate random scan...)"""
@@ -1,5 +1,4 @@
1
- """contains dialogs to select a Scan (aka Data)
2
- """
1
+ """contains dialogs to select a Scan (aka Data)"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,5 +1,4 @@
1
- """contains dialogs to select a Volume (reconstruction of a scan)
2
- """
1
+ """contains dialogs to select a Volume (reconstruction of a scan)"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,2 +1 @@
1
- """Widgets related to 'control' tasks (select a scan, convert a scan with nxtomomill...)
2
- """
1
+ """Widgets related to 'control' tasks (select a scan, convert a scan with nxtomomill...)"""
@@ -1,5 +1,4 @@
1
- """Utils to load images from file
2
- """
1
+ """Utils to load images from file"""
3
2
 
4
3
  from __future__ import annotations
5
4
 
@@ -1,5 +1,4 @@
1
- """Utils to load metadata (from a volume at the moment)
2
- """
1
+ """Utils to load metadata (from a volume at the moment)"""
3
2
 
4
3
  import logging
5
4
  from silx.gui import qt
tomwer/gui/qconfigfile.py CHANGED
@@ -1,5 +1,4 @@
1
- """contains 'QConfigFileDialog': dialog to get / set a .cfg file
2
- """
1
+ """contains 'QConfigFileDialog': dialog to get / set a .cfg file"""
3
2
 
4
3
  import os
5
4
  from silx.gui import qt