Skip to content

Help with function implementation #5852

Answered by dutraluiz
dutraluiz asked this question in Q&A
Discussion options

You must be logged in to vote

@ajdapretnar thanks for your help, but I don't get your tips. I write a new simple code, which is working:

# Get libraries
import Orange
from Orange.data import Table
import pandas as pd

# How Orange passes data to widget
df = in_data.copy()

#radiometric data
K = df[:,['K']]
eU = df[:,['eU']]
eTh = df[:,['eTh']]

lower_K = np.mean(K)/10
upper_K = np.quantile(K,0.995)

lower_eU = np.mean(eU)/10
upper_eU = np.quantile(eU,0.995)

lower_eTh = np.mean(eTh)/10
upper_eTh = np.quantile(eTh,0.995)

K = np.where((K <= lower_K),lower_K, K)
K = np.where((K >= upper_K),upper_K, K)

eU = np.where((eU <= lower_eU),lower_eU, eU)
eU = np.where((eU >= upper_eU),upper_eU, eU)

eTh = np.where((eTh <= lower…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ajdapretnar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5811 on February 18, 2022 13:40.