43c8843d01466fa704b836036fed1d5e4520efc4,data/signals.py,,fetch_d3d_data,#Any#Any#Any#,25
Before Change
//print("not in PTDATA {}".format(signal))
data = c.get("_s = pseudo(""+signal+"","+str(shot)+")").data()
if len(data) != 1:
xdata = c.get("dim_of(_s)").data()
rank = 1
found = True
//this means the signal wasn"t found
if not found:
After Change
pass
// get time base
if found:
if rank > 1:
xdata = c.get("dim_of(_s,1)").data()
xunits = get_units("dim_of(_s,1)")
ydata = c.get("dim_of(_s)").data()
yunits = get_units("dim_of(_s)")
else:
xdata = c.get("dim_of(_s)").data()
xunits = get_units("dim_of(_s)")
// MDSplus seems to return 2-D arrays transposed. Change them back.
if np.ndim(data) == 2: data = np.transpose(data)
if np.ndim(ydata) == 2: ydata = np.transpose(ydata)
if np.ndim(xdata) == 2: xdata = np.transpose(xdata)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: PPPLDeepLearning/plasma-python
Commit Name: 43c8843d01466fa704b836036fed1d5e4520efc4
Time: 2017-10-21
Author: julian@vpn-client-143.pppl.gov
File Name: data/signals.py
Class Name:
Method Name: fetch_d3d_data
Project Name: PyThaiNLP/pythainlp
Commit Name: 1eb7e94305c14a91d63486162dbe913e6edd83a3
Time: 2017-05-18
Author: wannaphong@yahoo.com
File Name: pythainlp/postaggers/__init__.py
Class Name:
Method Name:
Project Name: biolab/orange3
Commit Name: 9f8d0cf2f530dc95e4abe1cf6ac097a0a2a2f8c2
Time: 2019-04-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/utils/plot/owplotgui.py
Class Name: VariablesSelection
Method Name: __deactivate_selection