Commit 4cbfe16c authored by Joel Collins's avatar Joel Collins
Browse files

Edit return methods for API plugin example

parent 2fdabccf
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -9,23 +9,20 @@ class FirstPlugin(MicroscopePlugin):
        """
        Demonstrate access to Microscope.camera, and Microscope.stage
        """
        print("Parent camera:")
        print(self.microscope.camera)

        print("Parent stage:")
        print(self.microscope.stage)
        response = "My parent camera is {}, and my parent stage is {}.".format(self.microscope.camera, self.microscope.stage)
        return response


class OtherPlugin(MicroscopePlugin):
    """
    An example of a second Microscope plugin, loaded from the same plugin file.
    """
    def run(self):
    def do_something(self):
        """
        Demonstrate access to Microscope.camera, and Microscope.stage
        """
        print("Stage plugin parent stage:")
        print(self.microscope.stage)
        return "Stage plugin parent stage: {}".format(self.microscope.stage)


PLUGINS = {