def update(self, file_path, namespace=None):
        file_path = os.path.abspath(file_path)
        methods = self._get_methods(file_path)
        if namespace is None:
            namespace = self._get_filename(file_path)
        self._maybe_create_namespace(namespace)
        self.source_file_map[file_path] = namespace
        self.namespace_map[namespace].update(methods)
Updates the script index with the Groovy methods in the script file.
dataset/ETHPy150Open espeed/bulbs/bulbs/groovy.py/GroovyScripts.update