Commit 5ad0fc05 authored by Janez K's avatar Janez K

spremenil orange package v cforange

parent badc54cc
This file is placed here by pip to indicate the source was put
here by pip.
Once this package is successfully installed this source code will be
deleted (unless you remove this file).
......@@ -191,9 +191,9 @@ INSTALLED_APPS_WORKFLOWS_SUB = (
'workflows.subgroup_discovery',
'workflows.nlp',
'workflows.nl_toolkit',
'workflows.ilp',
'workflows.weka',
'workflows.orange',
'workflows.ilp',
'workflows.weka',
'workflows.cforange',
#WORKFLOWS_SUBAPP_PLACEHOLDER
)
......@@ -215,4 +215,4 @@ AUTH_PROFILE_MODULE = 'workflows.UserProfile'
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
STATIC_DOC_ROOT = os.path.join(os.getcwd(), 'mothra/public/media')
STATIC_DOC_ROOT = os.path.join(os.getcwd(), 'mothra/public/media')
from django.shortcuts import render
def cforange_filter_integers(request,input_dict,output_dict,widget):
return render(request, 'interactions/cforange_filter_integers.html',{'widget':widget,'intList':input_dict['intList']})
\ No newline at end of file
import re
def orange_create_integers(input_dict):
def cforange_create_integers(input_dict):
intStr = input_dict['intStr']
intList = []
for i in re.findall(r'\w+', intStr):
......@@ -12,14 +12,14 @@ def orange_create_integers(input_dict):
intList.sort()
return {'intList':intList}
def orange_sum_integers(input_dict):
def cforange_sum_integers(input_dict):
intList = input_dict['intList']
return {'sum':sum(intList)}
def orange_pre_filter_integers(input_dict):
def cforange_pre_filter_integers(input_dict):
return input_dict
def orange_post_filter_integers(postdata,input_dict,output_dict):
def cforange_post_filter_integers(postdata,input_dict,output_dict):
intListOut = postdata['intListOut']
intList = []
for i in intListOut:
......@@ -29,5 +29,5 @@ def orange_post_filter_integers(postdata,input_dict,output_dict):
pass
return {'intList': intList}
def orange_pre_display_summation(input_dict):
def cforange_pre_display_summation(input_dict):
return {}
\ No newline at end of file
from django.shortcuts import render
def orange_display_summation(request,input_dict,output_dict,widget):
def cforange_display_summation(request,input_dict,output_dict,widget):
if sum(input_dict['intList']) == input_dict['sum']:
check = 'The calculation appears correct.'
else:
check = 'The calculation appears incorrect!'
return render(request, 'visualizations/orange_display_integers.html',{'widget':widget,'input_dict':input_dict, 'output_dict':output_dict, 'check':check})
return render(request, 'visualizations/cforange_display_integers.html',{'widget':widget,'input_dict':input_dict, 'output_dict':output_dict, 'check':check})
from django.shortcuts import render
def orange_filter_integers(request,input_dict,output_dict,widget):
return render(request, 'interactions/orange_filter_integers.html',{'widget':widget,'intList':input_dict['intList']})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment