Code Monkey home page Code Monkey logo

phy_plugins's Introduction

How to use the plugins?

  • Clone the repository

  • Add the path to the location to ~/.phy/phy_config.py

    c.Plugins.dirs = [r'/home/ycan/.phy/plugins', r'/home/ycan/repos/phy_plugins']
    
  • To activate each plugin, add its name to the plugin list in the same file

    c.TemplateGUI.plugins = ['MEAColumns', <more plugins here>]

    When you pull from the repository, you need to repeat this step to activate the new plugins.

  • Relaunch phy

Notes

  • You should remove duplicate plugins in the ~/.phy/plugins folder, otherwise the loading might go wrong.
  • Some plugins might require additional packages to be installed, check the import statements if you're unable to run a plugin.
  • To get more verbose output, phy can be ran with the debug option.
    phy template-gui --debug params.py

References

Recluster and SplitShortISI were modified and copied from https://doi.org/10.5281/zenodo.3367782.

phy_plugins's People

Contributors

dimokaramanlis avatar szapp avatar ycanerol avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gollischlab

phy_plugins's Issues

Reorder columns fails to launch if it cannot find last_columns

Currently there is no check for existence of the columns defined in last_columns, so ReorderColumns fails if the defined columns don't previously exist, such as when launching a new experiment.

10:02:14.384 [E] __init__:62          An error has occurred (ValueError): list.remove(x): x not in list
Traceback (most recent call last):
  File "/home/ycan/anaconda3/envs/phy2/bin/phy", line 8, in <module>
    sys.exit(phycli())
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/phy/apps/__init__.py", line 159, in cli_template_gui
    template_gui(params_path, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/phy/apps/template/gui.py", line 198, in template_gui
    controller = TemplateController(model=load_model(params_path), dir_path=dir_path, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/phy/apps/base.py", line 447, in __init__
    super(TemplateMixin, self).__init__(*args, **kwargs)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/phy/apps/base.py", line 903, in __init__
    emit('controller_ready', self)
  File "/home/ycan/anaconda3/envs/phy2/lib/python3.8/site-packages/phylib/utils/event.py", line 141, in emit
    res.append(f(sender, *args, **kwargs))
  File "/home/ycan/repos/phy_plugins/ReorderColumns.py", line 109, in on_controller_ready
    controller.supervisor.columns.remove(col)
ValueError: list.remove(x): x not in list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.