v_net_centrality.py 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. """
  2. ***************************************************************************
  3. v_net_centrality.py
  4. -------------------
  5. Date : December 2017
  6. Copyright : (C) 2017 by Médéric Ribreux
  7. Email : medspx at medspx dot fr
  8. ***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************
  16. """
  17. __author__ = 'Médéric Ribreux'
  18. __date__ = 'December 2017'
  19. __copyright__ = '(C) 2017, Médéric Ribreux'
  20. from .v_net import incorporatePoints, variableOutput
  21. def processCommand(alg, parameters, context, feedback):
  22. incorporatePoints(alg, parameters, context, feedback)
  23. def processOutputs(alg, parameters, context, feedback):
  24. outputParameter = {'output': ['output', 'point', 1, False]}
  25. variableOutput(alg, outputParameter, parameters, context)