Skip to content

Commit

Permalink
Remove symengine cells. The symengine library should get integrated w…
Browse files Browse the repository at this point in the history
…ith sympy when it becomes mature in the future.
  • Loading branch information
uclatommy committed Apr 9, 2017
1 parent 27079c2 commit abb8928
Show file tree
Hide file tree
Showing 4 changed files with 549 additions and 178 deletions.
24 changes: 22 additions & 2 deletions PyCell/Plugins/PyCell/custom_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,32 @@ def is_valid_input(self, i, allow_none=False, allow_dict=False, **kwargs):
else:
return i is not None and not isinstance(i, dict)

def process(self):
def start(self):
pass

def stop(self):
pass

def process(self, code=None):
"""
Manages the return value that gets passed back to the C++ scheduler.
Always call this function at the end of your process implementation
and return its value. Your process function should never need to
return a value to the scheduler. This function will manage that for
you.
:param code: You can pass a return code here which will get passed on
to the scheduler.
:type code: :class:`~Quantum.QuReturnCode`
"""
return QuReturnCode('OK').returncode
try:
return code.returncode
except AttributeError:
return QuReturnCode('OK').returncode


def return_msg(self):
try:
return self.return_msg_
except:
return "No message available."
120 changes: 0 additions & 120 deletions PyCell/Plugins/PyCell/symengine_cell.py

This file was deleted.

Loading

0 comments on commit abb8928

Please sign in to comment.