diff --git a/analysis_scripts/Shapes_To_Table.py b/analysis_scripts/Shapes_To_Table.py index 06b2789..72d380b 100644 --- a/analysis_scripts/Shapes_To_Table.py +++ b/analysis_scripts/Shapes_To_Table.py @@ -207,5 +207,6 @@ def runAsScript(): finally: client.closeSession() + if __name__ == "__main__": runAsScript() diff --git a/analysis_scripts/Simple_FRAP.py b/analysis_scripts/Simple_FRAP.py index 4009e69..5a86ba4 100644 --- a/analysis_scripts/Simple_FRAP.py +++ b/analysis_scripts/Simple_FRAP.py @@ -296,5 +296,6 @@ def runAsScript(): finally: client.closeSession() + if __name__ == "__main__": runAsScript() diff --git a/metadata_scripts/Copy_And_Paste_Tags.py b/metadata_scripts/Copy_And_Paste_Tags.py index 7099c4a..63913f9 100644 --- a/metadata_scripts/Copy_And_Paste_Tags.py +++ b/metadata_scripts/Copy_And_Paste_Tags.py @@ -81,6 +81,7 @@ def copyAndPasteTags(conn, scriptParams): print "** Tag:", t.getValue(), " already on ", \ obj.OMERO_CLASS, obj.getName() + client = scripts.client( 'Copy_And_Paste_Tags.py', """Copy Tags from Datasets or Images and apply them to the \ diff --git a/metadata_scripts/Metadata_Search.py b/metadata_scripts/Metadata_Search.py index fc1ced8..660a05c 100644 --- a/metadata_scripts/Metadata_Search.py +++ b/metadata_scripts/Metadata_Search.py @@ -217,5 +217,6 @@ def runScript(): finally: client.closeSession() + if __name__ == "__main__": runScript() diff --git a/processing_scripts/Transform_Image.py b/processing_scripts/Transform_Image.py index a79d4e1..b3aeb88 100644 --- a/processing_scripts/Transform_Image.py +++ b/processing_scripts/Transform_Image.py @@ -49,6 +49,7 @@ def flipHorizontal(plane): def flipVertical(plane): return flipud(plane) + # The transforms that we support actions = {"Rotate_Left": rotate90, "Rotate_180": rotate180, @@ -202,5 +203,6 @@ def runAsScript(): finally: client.closeSession() + if __name__ == "__main__": runAsScript()