repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.right_click_specimen_equalarea
def right_click_specimen_equalarea(self, event): """ toggles between zoom and pan effects for the specimen equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ specimen_E...
python
def right_click_specimen_equalarea(self, event): """ toggles between zoom and pan effects for the specimen equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ specimen_E...
[ "def", "right_click_specimen_equalarea", "(", "self", ",", "event", ")", ":", "if", "event", ".", "LeftIsDown", "(", ")", "or", "event", ".", "ButtonDClick", "(", ")", ":", "return", "elif", "self", ".", "specimen_EA_setting", "==", "\"Zoom\"", ":", "self", ...
toggles between zoom and pan effects for the specimen equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ specimen_EA_setting, toolbar2 setting
[ "toggles", "between", "zoom", "and", "pan", "effects", "for", "the", "specimen", "equal", "area", "on", "right", "click" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7687-L7713
train
right click specimen equal area on the specimen equal area
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_change_specimen_mouse_cursor
def on_change_specimen_mouse_cursor(self, event): """ If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click """ if not self.specimen_EA_xdata or not self.specimen_EA_...
python
def on_change_specimen_mouse_cursor(self, event): """ If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click """ if not self.specimen_EA_xdata or not self.specimen_EA_...
[ "def", "on_change_specimen_mouse_cursor", "(", "self", ",", "event", ")", ":", "if", "not", "self", ".", "specimen_EA_xdata", "or", "not", "self", ".", "specimen_EA_ydata", ":", "return", "pos", "=", "event", ".", "GetPosition", "(", ")", "width", ",", "heig...
If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click
[ "If", "mouse", "is", "over", "data", "point", "making", "it", "selectable", "change", "the", "shape", "of", "the", "cursor" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7729-L7761
train
Handles mouse cursor events for specimen related data points
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_equalarea_specimen_select
def on_equalarea_specimen_select(self, event): """ Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ----...
python
def on_equalarea_specimen_select(self, event): """ Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ----...
[ "def", "on_equalarea_specimen_select", "(", "self", ",", "event", ")", ":", "if", "not", "self", ".", "specimen_EA_xdata", "or", "not", "self", ".", "specimen_EA_ydata", ":", "return", "pos", "=", "event", ".", "GetPosition", "(", ")", "width", ",", "height"...
Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ------ current_fit
[ "Get", "mouse", "position", "on", "double", "click", "find", "the", "nearest", "interpretation", "to", "the", "mouse", "position", "then", "select", "that", "interpretation" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7763-L7800
train
Select the nearest interpretation to the mouse position on double click and draw the figure.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.right_click_high_equalarea
def right_click_high_equalarea(self, event): """ toggles between zoom and pan effects for the high equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ high_EA_setting, t...
python
def right_click_high_equalarea(self, event): """ toggles between zoom and pan effects for the high equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ high_EA_setting, t...
[ "def", "right_click_high_equalarea", "(", "self", ",", "event", ")", ":", "if", "event", ".", "LeftIsDown", "(", ")", ":", "return", "elif", "self", ".", "high_EA_setting", "==", "\"Zoom\"", ":", "self", ".", "high_EA_setting", "=", "\"Pan\"", "try", ":", ...
toggles between zoom and pan effects for the high equal area on right click Parameters ---------- event : the wx.MouseEvent that triggered the call of this function Alters ------ high_EA_setting, toolbar4 setting
[ "toggles", "between", "zoom", "and", "pan", "effects", "for", "the", "high", "equal", "area", "on", "right", "click" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7802-L7828
train
Right click the high equal area on the event object event.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_change_high_mouse_cursor
def on_change_high_mouse_cursor(self, event): """ If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click """ if self.ie_open and self.ie.show_box.GetValue() != "specim...
python
def on_change_high_mouse_cursor(self, event): """ If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click """ if self.ie_open and self.ie.show_box.GetValue() != "specim...
[ "def", "on_change_high_mouse_cursor", "(", "self", ",", "event", ")", ":", "if", "self", ".", "ie_open", "and", "self", ".", "ie", ".", "show_box", ".", "GetValue", "(", ")", "!=", "\"specimens\"", ":", "return", "pos", "=", "event", ".", "GetPosition", ...
If mouse is over data point making it selectable change the shape of the cursor Parameters ---------- event : the wx Mouseevent for that click
[ "If", "mouse", "is", "over", "data", "point", "making", "it", "selectable", "change", "the", "shape", "of", "the", "cursor" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7844-L7878
train
Change the shape of the mouse cursor
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_equalarea_high_select
def on_equalarea_high_select(self, event, fig=None, canvas=None): """ Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ...
python
def on_equalarea_high_select(self, event, fig=None, canvas=None): """ Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ...
[ "def", "on_equalarea_high_select", "(", "self", ",", "event", ",", "fig", "=", "None", ",", "canvas", "=", "None", ")", ":", "if", "self", ".", "ie_open", "and", "self", ".", "ie", ".", "show_box", ".", "GetValue", "(", ")", "!=", "\"specimens\"", ":",...
Get mouse position on double click find the nearest interpretation to the mouse position then select that interpretation Parameters ---------- event : the wx Mouseevent for that click Alters ------ current_fit, s, mean_fit, fit_box selection, mean_fit_box select...
[ "Get", "mouse", "position", "on", "double", "click", "find", "the", "nearest", "interpretation", "to", "the", "mouse", "position", "then", "select", "that", "interpretation" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7880-L7981
train
Select interpretation for high level interpretation
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.Add_text
def Add_text(self): """ Add measurement data lines to the text window. """ self.selected_meas = [] if self.COORDINATE_SYSTEM == 'geographic': zijdblock = self.Data[self.s]['zijdblock_geo'] elif self.COORDINATE_SYSTEM == 'tilt-corrected': zijdblock ...
python
def Add_text(self): """ Add measurement data lines to the text window. """ self.selected_meas = [] if self.COORDINATE_SYSTEM == 'geographic': zijdblock = self.Data[self.s]['zijdblock_geo'] elif self.COORDINATE_SYSTEM == 'tilt-corrected': zijdblock ...
[ "def", "Add_text", "(", "self", ")", ":", "self", ".", "selected_meas", "=", "[", "]", "if", "self", ".", "COORDINATE_SYSTEM", "==", "'geographic'", ":", "zijdblock", "=", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'zijdblock_geo'", "]", "e...
Add measurement data lines to the text window.
[ "Add", "measurement", "data", "lines", "to", "the", "text", "window", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L7998-L8048
train
Add measurement data lines to the text window.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.select_bounds_in_logger
def select_bounds_in_logger(self, index): """ sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. ...
python
def select_bounds_in_logger(self, index): """ sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. ...
[ "def", "select_bounds_in_logger", "(", "self", ",", "index", ")", ":", "tmin_index", ",", "tmax_index", "=", "\"\"", ",", "\"\"", "if", "str", "(", "self", ".", "tmin_box", ".", "GetValue", "(", ")", ")", "!=", "\"\"", ":", "tmin_index", "=", "self", "...
sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. Parameters ---------- index : index of th...
[ "sets", "index", "as", "the", "upper", "or", "lower", "bound", "of", "a", "fit", "based", "on", "what", "the", "other", "bound", "is", "and", "selects", "it", "in", "the", "logger", ".", "Requires", "2", "calls", "to", "completely", "update", "a", "int...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8059-L8113
train
Selects the index in the logger based on what the other bound is and sets it in the logger.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_right_click_listctrl
def on_right_click_listctrl(self, event): """ right click on the listctrl toggles measurement bad """ g_index = event.GetIndex() if self.Data[self.s]['measurement_flag'][g_index] == 'g': self.mark_meas_bad(g_index) else: self.mark_meas_good(g_inde...
python
def on_right_click_listctrl(self, event): """ right click on the listctrl toggles measurement bad """ g_index = event.GetIndex() if self.Data[self.s]['measurement_flag'][g_index] == 'g': self.mark_meas_bad(g_index) else: self.mark_meas_good(g_inde...
[ "def", "on_right_click_listctrl", "(", "self", ",", "event", ")", ":", "g_index", "=", "event", ".", "GetIndex", "(", ")", "if", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'measurement_flag'", "]", "[", "g_index", "]", "==", "'g'", ":", "...
right click on the listctrl toggles measurement bad
[ "right", "click", "on", "the", "listctrl", "toggles", "measurement", "bad" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8115-L8137
train
right click on the listctrl toggles measurement bad
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.onSelect_specimen
def onSelect_specimen(self, event): """ update figures and text when a new specimen is selected """ self.selected_meas = [] self.select_specimen(str(self.specimens_box.GetValue())) if self.ie_open: self.ie.change_selected(self.current_fit) self.update_...
python
def onSelect_specimen(self, event): """ update figures and text when a new specimen is selected """ self.selected_meas = [] self.select_specimen(str(self.specimens_box.GetValue())) if self.ie_open: self.ie.change_selected(self.current_fit) self.update_...
[ "def", "onSelect_specimen", "(", "self", ",", "event", ")", ":", "self", ".", "selected_meas", "=", "[", "]", "self", ".", "select_specimen", "(", "str", "(", "self", ".", "specimens_box", ".", "GetValue", "(", ")", ")", ")", "if", "self", ".", "ie_ope...
update figures and text when a new specimen is selected
[ "update", "figures", "and", "text", "when", "a", "new", "specimen", "is", "selected" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8160-L8168
train
update figures and text when a new specimen is selected
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_enter_specimen
def on_enter_specimen(self, event): """ upon enter on the specimen box it makes that specimen the current specimen """ new_specimen = self.specimens_box.GetValue() if new_specimen not in self.specimens: self.user_warning( "%s is not a valid spe...
python
def on_enter_specimen(self, event): """ upon enter on the specimen box it makes that specimen the current specimen """ new_specimen = self.specimens_box.GetValue() if new_specimen not in self.specimens: self.user_warning( "%s is not a valid spe...
[ "def", "on_enter_specimen", "(", "self", ",", "event", ")", ":", "new_specimen", "=", "self", ".", "specimens_box", ".", "GetValue", "(", ")", "if", "new_specimen", "not", "in", "self", ".", "specimens", ":", "self", ".", "user_warning", "(", "\"%s is not a ...
upon enter on the specimen box it makes that specimen the current specimen
[ "upon", "enter", "on", "the", "specimen", "box", "it", "makes", "that", "specimen", "the", "current", "specimen" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8170-L8184
train
When the specimen is entered it makes that specimen the current specimen and the specimen is selected
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.get_new_PCA_parameters
def get_new_PCA_parameters(self, event): """ calculate statistics when temperatures are selected or PCA type is changed """ tmin = str(self.tmin_box.GetValue()) tmax = str(self.tmax_box.GetValue()) if tmin == "" or tmax == "": return if tmin ...
python
def get_new_PCA_parameters(self, event): """ calculate statistics when temperatures are selected or PCA type is changed """ tmin = str(self.tmin_box.GetValue()) tmax = str(self.tmax_box.GetValue()) if tmin == "" or tmax == "": return if tmin ...
[ "def", "get_new_PCA_parameters", "(", "self", ",", "event", ")", ":", "tmin", "=", "str", "(", "self", ".", "tmin_box", ".", "GetValue", "(", ")", ")", "tmax", "=", "str", "(", "self", ".", "tmax_box", ".", "GetValue", "(", ")", ")", "if", "tmin", ...
calculate statistics when temperatures are selected or PCA type is changed
[ "calculate", "statistics", "when", "temperatures", "are", "selected", "or", "PCA", "type", "is", "changed" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8221-L8253
train
calculate statistics when temperatures are selected and PCA type is changed
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_select_fit
def on_select_fit(self, event): """ Picks out the fit selected in the fit combobox and sets it to the current fit of the GUI then calls the select function of the fit to set the GUI's bounds boxes and alter other such parameters Parameters ---------- event : the ...
python
def on_select_fit(self, event): """ Picks out the fit selected in the fit combobox and sets it to the current fit of the GUI then calls the select function of the fit to set the GUI's bounds boxes and alter other such parameters Parameters ---------- event : the ...
[ "def", "on_select_fit", "(", "self", ",", "event", ")", ":", "fit_val", "=", "self", ".", "fit_box", ".", "GetValue", "(", ")", "if", "self", ".", "s", "not", "in", "self", ".", "pmag_results_data", "[", "'specimens'", "]", "or", "not", "self", ".", ...
Picks out the fit selected in the fit combobox and sets it to the current fit of the GUI then calls the select function of the fit to set the GUI's bounds boxes and alter other such parameters Parameters ---------- event : the wx.ComboBoxEvent that triggers this function ...
[ "Picks", "out", "the", "fit", "selected", "in", "the", "fit", "combobox", "and", "sets", "it", "to", "the", "current", "fit", "of", "the", "GUI", "then", "calls", "the", "select", "function", "of", "the", "fit", "to", "set", "the", "GUI", "s", "bounds"...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8362-L8392
train
Selects the current fit of the current entry in the fit combobox and sets the current fit to the fit of the GUI
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_enter_fit_name
def on_enter_fit_name(self, event): """ Allows the entering of new fit names in the fit combobox Parameters ---------- event : the wx.ComboBoxEvent that triggers this function Alters ------ current_fit.name """ if self.current_fit == None...
python
def on_enter_fit_name(self, event): """ Allows the entering of new fit names in the fit combobox Parameters ---------- event : the wx.ComboBoxEvent that triggers this function Alters ------ current_fit.name """ if self.current_fit == None...
[ "def", "on_enter_fit_name", "(", "self", ",", "event", ")", ":", "if", "self", ".", "current_fit", "==", "None", ":", "self", ".", "on_btn_add_fit", "(", "event", ")", "value", "=", "self", ".", "fit_box", ".", "GetValue", "(", ")", "if", "':'", "in", ...
Allows the entering of new fit names in the fit combobox Parameters ---------- event : the wx.ComboBoxEvent that triggers this function Alters ------ current_fit.name
[ "Allows", "the", "entering", "of", "new", "fit", "names", "in", "the", "fit", "combobox" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8394-L8420
train
Allows the entering of new fit names in the fit combobox
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_save_interpretation_button
def on_save_interpretation_button(self, event): """ on the save button the interpretation is saved to pmag_results_table data in all coordinate systems """ if self.current_fit: self.current_fit.saved = True calculation_type = self.current_fit.get(self.COO...
python
def on_save_interpretation_button(self, event): """ on the save button the interpretation is saved to pmag_results_table data in all coordinate systems """ if self.current_fit: self.current_fit.saved = True calculation_type = self.current_fit.get(self.COO...
[ "def", "on_save_interpretation_button", "(", "self", ",", "event", ")", ":", "if", "self", ".", "current_fit", ":", "self", ".", "current_fit", ".", "saved", "=", "True", "calculation_type", "=", "self", ".", "current_fit", ".", "get", "(", "self", ".", "C...
on the save button the interpretation is saved to pmag_results_table data in all coordinate systems
[ "on", "the", "save", "button", "the", "interpretation", "is", "saved", "to", "pmag_results_table", "data", "in", "all", "coordinate", "systems" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8426-L8453
train
save interpretation to pmag_results_table
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_btn_add_fit
def on_btn_add_fit(self, event): """ add a new interpretation to the current specimen Parameters ---------- event : the wx.ButtonEvent that triggered this function Alters ------ pmag_results_data """ if self.auto_save.GetValue(): ...
python
def on_btn_add_fit(self, event): """ add a new interpretation to the current specimen Parameters ---------- event : the wx.ButtonEvent that triggered this function Alters ------ pmag_results_data """ if self.auto_save.GetValue(): ...
[ "def", "on_btn_add_fit", "(", "self", ",", "event", ")", ":", "if", "self", ".", "auto_save", ".", "GetValue", "(", ")", ":", "self", ".", "current_fit", "=", "self", ".", "add_fit", "(", "self", ".", "s", ",", "None", ",", "None", ",", "None", ","...
add a new interpretation to the current specimen Parameters ---------- event : the wx.ButtonEvent that triggered this function Alters ------ pmag_results_data
[ "add", "a", "new", "interpretation", "to", "the", "current", "specimen" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8455-L8479
train
Function that is called when the user adds a new interpretation to the current specimen and creates a new interpretation for the current specimen
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_btn_delete_fit
def on_btn_delete_fit(self, event): """ removes the current interpretation Parameters ---------- event : the wx.ButtonEvent that triggered this function """ self.delete_fit(self.current_fit, specimen=self.s)
python
def on_btn_delete_fit(self, event): """ removes the current interpretation Parameters ---------- event : the wx.ButtonEvent that triggered this function """ self.delete_fit(self.current_fit, specimen=self.s)
[ "def", "on_btn_delete_fit", "(", "self", ",", "event", ")", ":", "self", ".", "delete_fit", "(", "self", ".", "current_fit", ",", "specimen", "=", "self", ".", "s", ")" ]
removes the current interpretation Parameters ---------- event : the wx.ButtonEvent that triggered this function
[ "removes", "the", "current", "interpretation" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8481-L8489
train
Delete the current interpretation from the log
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.do_auto_save
def do_auto_save(self): """ Delete current fit if auto_save==False, unless current fit has explicitly been saved. """ if not self.auto_save.GetValue(): if self.current_fit: if not self.current_fit.saved: self.delete_fit(self.current...
python
def do_auto_save(self): """ Delete current fit if auto_save==False, unless current fit has explicitly been saved. """ if not self.auto_save.GetValue(): if self.current_fit: if not self.current_fit.saved: self.delete_fit(self.current...
[ "def", "do_auto_save", "(", "self", ")", ":", "if", "not", "self", ".", "auto_save", ".", "GetValue", "(", ")", ":", "if", "self", ".", "current_fit", ":", "if", "not", "self", ".", "current_fit", ".", "saved", ":", "self", ".", "delete_fit", "(", "s...
Delete current fit if auto_save==False, unless current fit has explicitly been saved.
[ "Delete", "current", "fit", "if", "auto_save", "==", "False", "unless", "current", "fit", "has", "explicitly", "been", "saved", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8516-L8524
train
Delete current fit if auto_save == False.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/demag_gui.py
Demag_GUI.on_next_button
def on_next_button(self, event): """ update figures and text when a next button is selected """ self.do_auto_save() self.selected_meas = [] index = self.specimens.index(self.s) try: fit_index = self.pmag_results_data['specimens'][self.s].index( ...
python
def on_next_button(self, event): """ update figures and text when a next button is selected """ self.do_auto_save() self.selected_meas = [] index = self.specimens.index(self.s) try: fit_index = self.pmag_results_data['specimens'][self.s].index( ...
[ "def", "on_next_button", "(", "self", ",", "event", ")", ":", "self", ".", "do_auto_save", "(", ")", "self", ".", "selected_meas", "=", "[", "]", "index", "=", "self", ".", "specimens", ".", "index", "(", "self", ".", "s", ")", "try", ":", "fit_index...
update figures and text when a next button is selected
[ "update", "figures", "and", "text", "when", "a", "next", "button", "is", "selected" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/demag_gui.py#L8527-L8557
train
update figures and text when a next button is selected
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/chi_magic.py
main
def main(): """ NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -f FILE, specify measurements format file...
python
def main(): """ NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -f FILE, specify measurements format file...
[ "def", "main", "(", ")", ":", "if", "\"-h\"", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "return", "infile", "=", "pmag", ".", "get_named_arg", "(", "\"-f\"", ",", "\"measurements.txt\"", ")", "dir_path", "=", "pmag", "."...
NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -f FILE, specify measurements format file, default "measurements....
[ "NAME", "chi_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/chi_magic.py#L10-L43
train
NAME chi_magic. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/deprecated/thellier_magic_redo.py
main
def main(): """ NAME thellier_magic_redo.py DESCRIPTION Calculates paleointensity parameters for thellier-thellier type data using bounds stored in the "redo" file SYNTAX thellier_magic_redo [command line options] OPTIONS -h prints help message -usr...
python
def main(): """ NAME thellier_magic_redo.py DESCRIPTION Calculates paleointensity parameters for thellier-thellier type data using bounds stored in the "redo" file SYNTAX thellier_magic_redo [command line options] OPTIONS -h prints help message -usr...
[ "def", "main", "(", ")", ":", "dir_path", "=", "'.'", "critout", "=", "\"\"", "version_num", "=", "pmag", ".", "get_version", "(", ")", "field", ",", "first_save", "=", "-", "1", ",", "1", "spec", ",", "recnum", ",", "start", ",", "end", "=", "0", ...
NAME thellier_magic_redo.py DESCRIPTION Calculates paleointensity parameters for thellier-thellier type data using bounds stored in the "redo" file SYNTAX thellier_magic_redo [command line options] OPTIONS -h prints help message -usr USER: identify user, ...
[ "NAME", "thellier_magic_redo", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/thellier_magic_redo.py#L8-L383
train
This function is used to calculate the paleointensity parameters for a given thellier - thellier type data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/conversion_scripts2/pmd_magic2.py
main
def main(command_line=True, **kwargs): """ NAME pmd_magic.py DESCRIPTION converts PMD (Enkin) format files to magic_measurements format files SYNTAX pmd_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input...
python
def main(command_line=True, **kwargs): """ NAME pmd_magic.py DESCRIPTION converts PMD (Enkin) format files to magic_measurements format files SYNTAX pmd_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input...
[ "def", "main", "(", "command_line", "=", "True", ",", "*", "*", "kwargs", ")", ":", "# initialize some stuff", "noave", "=", "0", "inst", "=", "\"\"", "samp_con", ",", "Z", "=", "'1'", ",", "\"\"", "missing", "=", "1", "demag", "=", "\"N\"", "er_locati...
NAME pmd_magic.py DESCRIPTION converts PMD (Enkin) format files to magic_measurements format files SYNTAX pmd_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input file, or -F FILE: specify output file, def...
[ "NAME", "pmd_magic", ".", "py", "DESCRIPTION", "converts", "PMD", "(", "Enkin", ")", "format", "files", "to", "magic_measurements", "format", "files" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/conversion_scripts2/pmd_magic2.py#L7-L276
train
This function is the main entry point for the magic_measurements. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
York_Regression
def York_Regression(x_segment, y_segment, x_mean, y_mean, n, lab_dc_field, steps_Arai): """ input: x_segment, y_segment, x_mean, y_mean, n, lab_dc_field, steps_Arai output: x_err, y_err, x_tag, y_tag, b, b_sigma, specimen_b_beta, y_intercept, x_intercept, x_prime, y_prime, delta_x_prime, delta_...
python
def York_Regression(x_segment, y_segment, x_mean, y_mean, n, lab_dc_field, steps_Arai): """ input: x_segment, y_segment, x_mean, y_mean, n, lab_dc_field, steps_Arai output: x_err, y_err, x_tag, y_tag, b, b_sigma, specimen_b_beta, y_intercept, x_intercept, x_prime, y_prime, delta_x_prime, delta_...
[ "def", "York_Regression", "(", "x_segment", ",", "y_segment", ",", "x_mean", ",", "y_mean", ",", "n", ",", "lab_dc_field", ",", "steps_Arai", ")", ":", "x_err", "=", "x_segment", "-", "x_mean", "y_err", "=", "y_segment", "-", "y_mean", "york_b", "=", "-", ...
input: x_segment, y_segment, x_mean, y_mean, n, lab_dc_field, steps_Arai output: x_err, y_err, x_tag, y_tag, b, b_sigma, specimen_b_beta, y_intercept, x_intercept, x_prime, y_prime, delta_x_prime, delta_y_prime, f_Coe, g_Coe, g_lim, specimen_q, specimen_w, count_IZ, count_ZI, B_lab, B_anc, ...
[ "input", ":", "x_segment", "y_segment", "x_mean", "y_mean", "n", "lab_dc_field", "steps_Arai", "output", ":", "x_err", "y_err", "x_tag", "y_tag", "b", "b_sigma", "specimen_b_beta", "y_intercept", "x_intercept", "x_prime", "y_prime", "delta_x_prime", "delta_y_prime", "...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L10-L68
train
York regression for the current object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_vds
def get_vds(zdata, delta_y_prime, start, end): """takes zdata array: [[1, 2, 3], [3, 4, 5]], delta_y_prime: 1, start value, and end value. gets vds and f_vds, etc. """ vector_diffs = [] for k in range(len(zdata)-1): # gets diff between two vectors vector_diffs.append(numpy.sqrt(sum((numpy.array...
python
def get_vds(zdata, delta_y_prime, start, end): """takes zdata array: [[1, 2, 3], [3, 4, 5]], delta_y_prime: 1, start value, and end value. gets vds and f_vds, etc. """ vector_diffs = [] for k in range(len(zdata)-1): # gets diff between two vectors vector_diffs.append(numpy.sqrt(sum((numpy.array...
[ "def", "get_vds", "(", "zdata", ",", "delta_y_prime", ",", "start", ",", "end", ")", ":", "vector_diffs", "=", "[", "]", "for", "k", "in", "range", "(", "len", "(", "zdata", ")", "-", "1", ")", ":", "# gets diff between two vectors", "vector_diffs", ".",...
takes zdata array: [[1, 2, 3], [3, 4, 5]], delta_y_prime: 1, start value, and end value. gets vds and f_vds, etc.
[ "takes", "zdata", "array", ":", "[[", "1", "2", "3", "]", "[", "3", "4", "5", "]]", "delta_y_prime", ":", "1", "start", "value", "and", "end", "value", ".", "gets", "vds", "and", "f_vds", "etc", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L70-L86
train
gets vds and f_vds and GAP_MAX from the data array
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_SCAT_box
def get_SCAT_box(slope, x_mean, y_mean, beta_threshold = .1): """ takes in data and returns information about SCAT box: the largest possible x_value, the largest possible y_value, and functions for the two bounding lines of the box """ # if beta_threshold is -999, that means null if beta_thr...
python
def get_SCAT_box(slope, x_mean, y_mean, beta_threshold = .1): """ takes in data and returns information about SCAT box: the largest possible x_value, the largest possible y_value, and functions for the two bounding lines of the box """ # if beta_threshold is -999, that means null if beta_thr...
[ "def", "get_SCAT_box", "(", "slope", ",", "x_mean", ",", "y_mean", ",", "beta_threshold", "=", ".1", ")", ":", "# if beta_threshold is -999, that means null", "if", "beta_threshold", "==", "-", "999", ":", "beta_threshold", "=", ".1", "slope_err_threshold", "=", "...
takes in data and returns information about SCAT box: the largest possible x_value, the largest possible y_value, and functions for the two bounding lines of the box
[ "takes", "in", "data", "and", "returns", "information", "about", "SCAT", "box", ":", "the", "largest", "possible", "x_value", "the", "largest", "possible", "y_value", "and", "functions", "for", "the", "two", "bounding", "lines", "of", "the", "box" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L88-L130
train
returns information about a SCAT box
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
in_SCAT_box
def in_SCAT_box(x, y, low_bound, high_bound, x_max, y_max): """determines if a particular point falls within a box""" passing = True upper_limit = high_bound(x) lower_limit = low_bound(x) if x > x_max or y > y_max: passing = False if x < 0 or y < 0: passing = False if y > upp...
python
def in_SCAT_box(x, y, low_bound, high_bound, x_max, y_max): """determines if a particular point falls within a box""" passing = True upper_limit = high_bound(x) lower_limit = low_bound(x) if x > x_max or y > y_max: passing = False if x < 0 or y < 0: passing = False if y > upp...
[ "def", "in_SCAT_box", "(", "x", ",", "y", ",", "low_bound", ",", "high_bound", ",", "x_max", ",", "y_max", ")", ":", "passing", "=", "True", "upper_limit", "=", "high_bound", "(", "x", ")", "lower_limit", "=", "low_bound", "(", "x", ")", "if", "x", "...
determines if a particular point falls within a box
[ "determines", "if", "a", "particular", "point", "falls", "within", "a", "box" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L132-L145
train
determines if a particular point falls within a box
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_SCAT_points
def get_SCAT_points(x_Arai_segment, y_Arai_segment, tmin, tmax, ptrm_checks_temperatures, ptrm_checks_starting_temperatures, x_ptrm_check, y_ptrm_check, tail_checks_temperatures, tail_checks_starting_temperatures, x_tail_check, y_tail_check): """returns re...
python
def get_SCAT_points(x_Arai_segment, y_Arai_segment, tmin, tmax, ptrm_checks_temperatures, ptrm_checks_starting_temperatures, x_ptrm_check, y_ptrm_check, tail_checks_temperatures, tail_checks_starting_temperatures, x_tail_check, y_tail_check): """returns re...
[ "def", "get_SCAT_points", "(", "x_Arai_segment", ",", "y_Arai_segment", ",", "tmin", ",", "tmax", ",", "ptrm_checks_temperatures", ",", "ptrm_checks_starting_temperatures", ",", "x_ptrm_check", ",", "y_ptrm_check", ",", "tail_checks_temperatures", ",", "tail_checks_starting...
returns relevant points for a SCAT test
[ "returns", "relevant", "points", "for", "a", "SCAT", "test" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L147-L181
train
returns relevant points for a SCAT test
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_SCAT
def get_SCAT(points, low_bound, high_bound, x_max, y_max): """ runs SCAT test and returns boolean """ # iterate through all relevant points and see if any of them fall outside of your SCAT box SCAT = True for point in points: result = in_SCAT_box(point[0], point[1], low_bound, high_bound...
python
def get_SCAT(points, low_bound, high_bound, x_max, y_max): """ runs SCAT test and returns boolean """ # iterate through all relevant points and see if any of them fall outside of your SCAT box SCAT = True for point in points: result = in_SCAT_box(point[0], point[1], low_bound, high_bound...
[ "def", "get_SCAT", "(", "points", ",", "low_bound", ",", "high_bound", ",", "x_max", ",", "y_max", ")", ":", "# iterate through all relevant points and see if any of them fall outside of your SCAT box", "SCAT", "=", "True", "for", "point", "in", "points", ":", "result",...
runs SCAT test and returns boolean
[ "runs", "SCAT", "test", "and", "returns", "boolean" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L183-L194
train
runs SCAT test and returns boolean
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
fancy_SCAT
def fancy_SCAT(points, low_bound, high_bound, x_max, y_max): """ runs SCAT test and returns 'Pass' or 'Fail' """ # iterate through all relevant points and see if any of them fall outside of your SCAT box # {'points_arai': [(x,y),(x,y)], 'points_ptrm': [(x,y),(x,y)], ...} SCAT = 'Pass' SCATs ...
python
def fancy_SCAT(points, low_bound, high_bound, x_max, y_max): """ runs SCAT test and returns 'Pass' or 'Fail' """ # iterate through all relevant points and see if any of them fall outside of your SCAT box # {'points_arai': [(x,y),(x,y)], 'points_ptrm': [(x,y),(x,y)], ...} SCAT = 'Pass' SCATs ...
[ "def", "fancy_SCAT", "(", "points", ",", "low_bound", ",", "high_bound", ",", "x_max", ",", "y_max", ")", ":", "# iterate through all relevant points and see if any of them fall outside of your SCAT box", "# {'points_arai': [(x,y),(x,y)], 'points_ptrm': [(x,y),(x,y)], ...}", "SCAT", ...
runs SCAT test and returns 'Pass' or 'Fail'
[ "runs", "SCAT", "test", "and", "returns", "Pass", "or", "Fail" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L196-L216
train
runs SCAT test and returns Pass or Fail
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_FRAC
def get_FRAC(vds, vector_diffs_segment): """ input: vds, vector_diffs_segment output: FRAC """ for num in vector_diffs_segment: if num < 0: raise ValueError('vector diffs should not be negative') if vds == 0: raise ValueError('attempting to divide by zero. vds should ...
python
def get_FRAC(vds, vector_diffs_segment): """ input: vds, vector_diffs_segment output: FRAC """ for num in vector_diffs_segment: if num < 0: raise ValueError('vector diffs should not be negative') if vds == 0: raise ValueError('attempting to divide by zero. vds should ...
[ "def", "get_FRAC", "(", "vds", ",", "vector_diffs_segment", ")", ":", "for", "num", "in", "vector_diffs_segment", ":", "if", "num", "<", "0", ":", "raise", "ValueError", "(", "'vector diffs should not be negative'", ")", "if", "vds", "==", "0", ":", "raise", ...
input: vds, vector_diffs_segment output: FRAC
[ "input", ":", "vds", "vector_diffs_segment", "output", ":", "FRAC" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L219-L230
train
get the FRAC of a single element in a list of vector diffs
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_R_corr2
def get_R_corr2(x_avg, y_avg, x_segment, y_segment): # """ input: x_avg, y_avg, x_segment, y_segment output: R_corr2 """ xd = x_segment - x_avg # detrend x_segment yd = y_segment - y_avg # detrend y_segment if sum(xd**2) * sum(yd**2) == 0: # prevent divide by zero error return float(...
python
def get_R_corr2(x_avg, y_avg, x_segment, y_segment): # """ input: x_avg, y_avg, x_segment, y_segment output: R_corr2 """ xd = x_segment - x_avg # detrend x_segment yd = y_segment - y_avg # detrend y_segment if sum(xd**2) * sum(yd**2) == 0: # prevent divide by zero error return float(...
[ "def", "get_R_corr2", "(", "x_avg", ",", "y_avg", ",", "x_segment", ",", "y_segment", ")", ":", "#", "xd", "=", "x_segment", "-", "x_avg", "# detrend x_segment", "yd", "=", "y_segment", "-", "y_avg", "# detrend y_segment", "if", "sum", "(", "xd", "**", "2"...
input: x_avg, y_avg, x_segment, y_segment output: R_corr2
[ "input", ":", "x_avg", "y_avg", "x_segment", "y_segment", "output", ":", "R_corr2" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L232-L242
train
Compute R_corr2 based on average of two segments.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_R_det2
def get_R_det2(y_segment, y_avg, y_prime): """ takes in an array of y values, the mean of those values, and the array of y prime values. returns R_det2 """ numerator = sum((numpy.array(y_segment) - numpy.array(y_prime))**2) denominator = sum((numpy.array(y_segment) - y_avg)**2) if denominato...
python
def get_R_det2(y_segment, y_avg, y_prime): """ takes in an array of y values, the mean of those values, and the array of y prime values. returns R_det2 """ numerator = sum((numpy.array(y_segment) - numpy.array(y_prime))**2) denominator = sum((numpy.array(y_segment) - y_avg)**2) if denominato...
[ "def", "get_R_det2", "(", "y_segment", ",", "y_avg", ",", "y_prime", ")", ":", "numerator", "=", "sum", "(", "(", "numpy", ".", "array", "(", "y_segment", ")", "-", "numpy", ".", "array", "(", "y_prime", ")", ")", "**", "2", ")", "denominator", "=", ...
takes in an array of y values, the mean of those values, and the array of y prime values. returns R_det2
[ "takes", "in", "an", "array", "of", "y", "values", "the", "mean", "of", "those", "values", "and", "the", "array", "of", "y", "prime", "values", ".", "returns", "R_det2" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L244-L255
train
returns the R_det2 of the last two values of the y_prime and y_avg
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_b_wiggle
def get_b_wiggle(x, y, y_int): """returns instantaneous slope from the ratio of NRM lost to TRM gained at the ith step""" if x == 0: b_wiggle = 0 else: b_wiggle = old_div((y_int - y), x) return b_wiggle
python
def get_b_wiggle(x, y, y_int): """returns instantaneous slope from the ratio of NRM lost to TRM gained at the ith step""" if x == 0: b_wiggle = 0 else: b_wiggle = old_div((y_int - y), x) return b_wiggle
[ "def", "get_b_wiggle", "(", "x", ",", "y", ",", "y_int", ")", ":", "if", "x", "==", "0", ":", "b_wiggle", "=", "0", "else", ":", "b_wiggle", "=", "old_div", "(", "(", "y_int", "-", "y", ")", ",", "x", ")", "return", "b_wiggle" ]
returns instantaneous slope from the ratio of NRM lost to TRM gained at the ith step
[ "returns", "instantaneous", "slope", "from", "the", "ratio", "of", "NRM", "lost", "to", "TRM", "gained", "at", "the", "ith", "step" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L257-L263
train
returns instantaneous slope from the ratio of NRM lost to TRM gained at the ith step
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_Z
def get_Z(x_segment, y_segment, x_int, y_int, slope): """ input: x_segment, y_segment, x_int, y_int, slope output: Z (Arai plot zigzag parameter) """ Z = 0 first_time = True for num, x in enumerate(x_segment): b_wiggle = get_b_wiggle(x, y_segment[num], y_int) z = old_div((x *...
python
def get_Z(x_segment, y_segment, x_int, y_int, slope): """ input: x_segment, y_segment, x_int, y_int, slope output: Z (Arai plot zigzag parameter) """ Z = 0 first_time = True for num, x in enumerate(x_segment): b_wiggle = get_b_wiggle(x, y_segment[num], y_int) z = old_div((x *...
[ "def", "get_Z", "(", "x_segment", ",", "y_segment", ",", "x_int", ",", "y_int", ",", "slope", ")", ":", "Z", "=", "0", "first_time", "=", "True", "for", "num", ",", "x", "in", "enumerate", "(", "x_segment", ")", ":", "b_wiggle", "=", "get_b_wiggle", ...
input: x_segment, y_segment, x_int, y_int, slope output: Z (Arai plot zigzag parameter)
[ "input", ":", "x_segment", "y_segment", "x_int", "y_int", "slope", "output", ":", "Z", "(", "Arai", "plot", "zigzag", "parameter", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L265-L277
train
get Z from Arai plot
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_Zstar
def get_Zstar(x_segment, y_segment, x_int, y_int, slope, n): """ input: x_segment, y_segment, x_int, y_int, slope, n output: Z* (Arai plot zigzag parameter (alternate)) """ total = 0 first_time = True for num, x in enumerate(x_segment): b_wiggle = get_b_wiggle(x, y_segment[num], y_in...
python
def get_Zstar(x_segment, y_segment, x_int, y_int, slope, n): """ input: x_segment, y_segment, x_int, y_int, slope, n output: Z* (Arai plot zigzag parameter (alternate)) """ total = 0 first_time = True for num, x in enumerate(x_segment): b_wiggle = get_b_wiggle(x, y_segment[num], y_in...
[ "def", "get_Zstar", "(", "x_segment", ",", "y_segment", ",", "x_int", ",", "y_int", ",", "slope", ",", "n", ")", ":", "total", "=", "0", "first_time", "=", "True", "for", "num", ",", "x", "in", "enumerate", "(", "x_segment", ")", ":", "b_wiggle", "="...
input: x_segment, y_segment, x_int, y_int, slope, n output: Z* (Arai plot zigzag parameter (alternate))
[ "input", ":", "x_segment", "y_segment", "x_int", "y_int", "slope", "n", "output", ":", "Z", "*", "(", "Arai", "plot", "zigzag", "parameter", "(", "alternate", "))" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L279-L292
train
Calculates the Zstar of a set of segments.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_normed_points
def get_normed_points(point_array, norm): # good to go """ input: point_array, norm output: normed array """ norm = float(norm) #floated_array = [] #for p in point_array: # need to make sure each point is a float #floated_array.append(float(p)) points = old_div(numpy.array(point_...
python
def get_normed_points(point_array, norm): # good to go """ input: point_array, norm output: normed array """ norm = float(norm) #floated_array = [] #for p in point_array: # need to make sure each point is a float #floated_array.append(float(p)) points = old_div(numpy.array(point_...
[ "def", "get_normed_points", "(", "point_array", ",", "norm", ")", ":", "# good to go", "norm", "=", "float", "(", "norm", ")", "#floated_array = []", "#for p in point_array: # need to make sure each point is a float", "#floated_array.append(float(p))", "points", "=", "old_div...
input: point_array, norm output: normed array
[ "input", ":", "point_array", "norm", "output", ":", "normed", "array" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L297-L307
train
get the normalized points
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
SPD/lib/lib_arai_plot_statistics.py
get_xy_array
def get_xy_array(x_segment, y_segment): """ input: x_segment, y_segment output: xy_segment, ( format: [(x[0], y[0]), (x[1], y[1])] """ xy_array = [] for num, x in enumerate(x_segment): xy_array.append((x, y_segment[num])) return xy_array
python
def get_xy_array(x_segment, y_segment): """ input: x_segment, y_segment output: xy_segment, ( format: [(x[0], y[0]), (x[1], y[1])] """ xy_array = [] for num, x in enumerate(x_segment): xy_array.append((x, y_segment[num])) return xy_array
[ "def", "get_xy_array", "(", "x_segment", ",", "y_segment", ")", ":", "xy_array", "=", "[", "]", "for", "num", ",", "x", "in", "enumerate", "(", "x_segment", ")", ":", "xy_array", ".", "append", "(", "(", "x", ",", "y_segment", "[", "num", "]", ")", ...
input: x_segment, y_segment output: xy_segment, ( format: [(x[0], y[0]), (x[1], y[1])]
[ "input", ":", "x_segment", "y_segment", "output", ":", "xy_segment", "(", "format", ":", "[", "(", "x", "[", "0", "]", "y", "[", "0", "]", ")", "(", "x", "[", "1", "]", "y", "[", "1", "]", ")", "]" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/lib_arai_plot_statistics.py#L309-L317
train
get xy array from x_segment y_segment
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/stats.py
main
def main(): """ NAME stats.py DEFINITION calculates Gauss statistics for input data SYNTAX stats [command line options][< filename] INPUT single column of numbers OPTIONS -h prints help message and quits -i interactive entry of file name ...
python
def main(): """ NAME stats.py DEFINITION calculates Gauss statistics for input data SYNTAX stats [command line options][< filename] INPUT single column of numbers OPTIONS -h prints help message and quits -i interactive entry of file name ...
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-i'", "in", "sys", ".", "argv", ":", "file", "=", "input", "(", "\"Enter file name: \"", "...
NAME stats.py DEFINITION calculates Gauss statistics for input data SYNTAX stats [command line options][< filename] INPUT single column of numbers OPTIONS -h prints help message and quits -i interactive entry of file name -f input file name ...
[ "NAME", "stats", ".", "py", "DEFINITION", "calculates", "Gauss", "statistics", "for", "input", "data" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/stats.py#L7-L65
train
NAME stats. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/magic_select.py
main
def main(): """ NAME magic_select.py DESCRIPTION picks out records and dictitem options saves to magic_special file SYNTAX magic_select.py [command line optins] OPTIONS -h prints help message and quits -f FILE: specify input magic format file -F FIL...
python
def main(): """ NAME magic_select.py DESCRIPTION picks out records and dictitem options saves to magic_special file SYNTAX magic_select.py [command line optins] OPTIONS -h prints help message and quits -f FILE: specify input magic format file -F FIL...
[ "def", "main", "(", ")", ":", "dir_path", "=", "\".\"", "flag", "=", "''", "if", "'-WD'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "dir_path", "=", "sys", ".", "argv", "[", "ind", "+", "1",...
NAME magic_select.py DESCRIPTION picks out records and dictitem options saves to magic_special file SYNTAX magic_select.py [command line optins] OPTIONS -h prints help message and quits -f FILE: specify input magic format file -F FILE: specify output magic ...
[ "NAME", "magic_select", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_select.py#L7-L93
train
NAME n_magic_select. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/aniso_magic2.py
main
def main(): """ NAME aniso_magic.py DESCRIPTION plots anisotropy data with either bootstrap or hext ellipses SYNTAX aniso_magic.py [-h] [command line options] OPTIONS -h plots help message and quits -usr USER: set the user name -f AFILE, specify rmag...
python
def main(): """ NAME aniso_magic.py DESCRIPTION plots anisotropy data with either bootstrap or hext ellipses SYNTAX aniso_magic.py [-h] [command line options] OPTIONS -h plots help message and quits -usr USER: set the user name -f AFILE, specify rmag...
[ "def", "main", "(", ")", ":", "#", "dir_path", "=", "\".\"", "version_num", "=", "pmag", ".", "get_version", "(", ")", "verbose", "=", "pmagplotlib", ".", "verbose", "args", "=", "sys", ".", "argv", "ipar", ",", "ihext", ",", "ivec", ",", "iboot", ",...
NAME aniso_magic.py DESCRIPTION plots anisotropy data with either bootstrap or hext ellipses SYNTAX aniso_magic.py [-h] [command line options] OPTIONS -h plots help message and quits -usr USER: set the user name -f AFILE, specify rmag_anisotropy formatted fi...
[ "NAME", "aniso_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/aniso_magic2.py#L20-L579
train
This function is the main function of the anisotropy data plot. It is called by pmag. py to generate the appropriate data structure for the base class and the main function of the anisotropy data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/eqarea_ell.py
main
def main(): """ NAME eqarea_ell.py DESCRIPTION makes equal area projections from declination/inclination data and plot ellipses SYNTAX eqarea_ell.py -h [command line options] INPUT takes space delimited Dec/Inc data OPTIONS -h prints help message ...
python
def main(): """ NAME eqarea_ell.py DESCRIPTION makes equal area projections from declination/inclination data and plot ellipses SYNTAX eqarea_ell.py -h [command line options] INPUT takes space delimited Dec/Inc data OPTIONS -h prints help message ...
[ "def", "main", "(", ")", ":", "FIG", "=", "{", "}", "# plot dictionary", "FIG", "[", "'eq'", "]", "=", "1", "# eqarea is figure 1", "fmt", ",", "dist", ",", "mode", ",", "plot", "=", "'svg'", ",", "'F'", ",", "1", ",", "0", "sym", "=", "{", "'low...
NAME eqarea_ell.py DESCRIPTION makes equal area projections from declination/inclination data and plot ellipses SYNTAX eqarea_ell.py -h [command line options] INPUT takes space delimited Dec/Inc data OPTIONS -h prints help message and quits -f FIL...
[ "NAME", "eqarea_ell", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/eqarea_ell.py#L12-L237
train
NAME eqarea_ell. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/di_eq.py
main
def main(): """ NAME di_eq.py DESCRIPTION converts dec, inc pairs to x,y pairs using equal area projection NB: do only upper or lower hemisphere at a time: does not distinguish between up and down. SYNTAX di_eq.py [command line options] [< filename] OPTIO...
python
def main(): """ NAME di_eq.py DESCRIPTION converts dec, inc pairs to x,y pairs using equal area projection NB: do only upper or lower hemisphere at a time: does not distinguish between up and down. SYNTAX di_eq.py [command line options] [< filename] OPTIO...
[ "def", "main", "(", ")", ":", "out", "=", "\"\"", "UP", "=", "0", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", ...
NAME di_eq.py DESCRIPTION converts dec, inc pairs to x,y pairs using equal area projection NB: do only upper or lower hemisphere at a time: does not distinguish between up and down. SYNTAX di_eq.py [command line options] [< filename] OPTIONS -h prints he...
[ "NAME", "di_eq", ".", "py", "DESCRIPTION", "converts", "dec", "inc", "pairs", "to", "x", "y", "pairs", "using", "equal", "area", "projection", "NB", ":", "do", "only", "upper", "or", "lower", "hemisphere", "at", "a", "time", ":", "does", "not", "distingu...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/di_eq.py#L7-L42
train
NAME is the main function for the module. It is the main function for the module. It is used to convert dec inc pairs to x y pairs using equal area projection.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/spline.py
spline_interpolate
def spline_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ sp = Spline(x1, y1) return sp(x2)
python
def spline_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ sp = Spline(x1, y1) return sp(x2)
[ "def", "spline_interpolate", "(", "x1", ",", "y1", ",", "x2", ")", ":", "sp", "=", "Spline", "(", "x1", ",", "y1", ")", "return", "sp", "(", "x2", ")" ]
Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2.
[ "Given", "a", "function", "at", "a", "set", "of", "points", "(", "x1", "y1", ")", "interpolate", "to", "evaluate", "it", "at", "points", "x2", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/spline.py#L163-L169
train
Interpolate a function at a set of points x1 y1 at a set of points x2.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/spline.py
logspline_interpolate
def logspline_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ sp = Spline(log(x1), log(y1)) return exp(sp(log(x2)))
python
def logspline_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ sp = Spline(log(x1), log(y1)) return exp(sp(log(x2)))
[ "def", "logspline_interpolate", "(", "x1", ",", "y1", ",", "x2", ")", ":", "sp", "=", "Spline", "(", "log", "(", "x1", ")", ",", "log", "(", "y1", ")", ")", "return", "exp", "(", "sp", "(", "log", "(", "x2", ")", ")", ")" ]
Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2.
[ "Given", "a", "function", "at", "a", "set", "of", "points", "(", "x1", "y1", ")", "interpolate", "to", "evaluate", "it", "at", "points", "x2", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/spline.py#L171-L177
train
Given a function at a set of points x1 y1 interpolate to a set of points x2 evaluate it at points x2.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/spline.py
linear_interpolate
def linear_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ li = LinInt(x1, y1) return li(x2)
python
def linear_interpolate(x1, y1, x2): """ Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2. """ li = LinInt(x1, y1) return li(x2)
[ "def", "linear_interpolate", "(", "x1", ",", "y1", ",", "x2", ")", ":", "li", "=", "LinInt", "(", "x1", ",", "y1", ")", "return", "li", "(", "x2", ")" ]
Given a function at a set of points (x1, y1), interpolate to evaluate it at points x2.
[ "Given", "a", "function", "at", "a", "set", "of", "points", "(", "x1", "y1", ")", "interpolate", "to", "evaluate", "it", "at", "points", "x2", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/spline.py#L180-L186
train
Interpolate a function at a set of points x1 y1 at a set of points x2.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/spline.py
LinInt.call
def call(self, x): """ Evaluate the interpolant, assuming x is a scalar. """ # if out of range, return endpoint if x <= self.x_vals[0]: return self.y_vals[0] if x >= self.x_vals[-1]: return self.y_vals[-1] pos = numpy.searchsorted(self.x_vals,...
python
def call(self, x): """ Evaluate the interpolant, assuming x is a scalar. """ # if out of range, return endpoint if x <= self.x_vals[0]: return self.y_vals[0] if x >= self.x_vals[-1]: return self.y_vals[-1] pos = numpy.searchsorted(self.x_vals,...
[ "def", "call", "(", "self", ",", "x", ")", ":", "# if out of range, return endpoint", "if", "x", "<=", "self", ".", "x_vals", "[", "0", "]", ":", "return", "self", ".", "y_vals", "[", "0", "]", "if", "x", ">=", "self", ".", "x_vals", "[", "-", "1",...
Evaluate the interpolant, assuming x is a scalar.
[ "Evaluate", "the", "interpolant", "assuming", "x", "is", "a", "scalar", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/spline.py#L143-L161
train
Evaluate the interpolant of the logarithmic term.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/aarm_magic.py
main
def main(): """ NAME aarm_magic.py DESCRIPTION Converts AARM data to best-fit tensor (6 elements plus sigma) Original program ARMcrunch written to accomodate ARM anisotropy data collected from 6 axial directions (+X,+Y,+Z,-X,-Y,-Z) using the off-axis remanence ...
python
def main(): """ NAME aarm_magic.py DESCRIPTION Converts AARM data to best-fit tensor (6 elements plus sigma) Original program ARMcrunch written to accomodate ARM anisotropy data collected from 6 axial directions (+X,+Y,+Z,-X,-Y,-Z) using the off-axis remanence ...
[ "def", "main", "(", ")", ":", "# initialize some parameters", "args", "=", "sys", ".", "argv", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "#meas_file = \"aarm_measurements.txt\"", "#rmag_anis = \...
NAME aarm_magic.py DESCRIPTION Converts AARM data to best-fit tensor (6 elements plus sigma) Original program ARMcrunch written to accomodate ARM anisotropy data collected from 6 axial directions (+X,+Y,+Z,-X,-Y,-Z) using the off-axis remanence terms to construct the t...
[ "NAME", "aarm_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/aarm_magic.py#L7-L75
train
This function is the main function for the ARMcrunch program. It is used to construct the best fit ARM tensor for the specified program.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/dmag_magic2.py
main
def main(): """ NAME dmag_magic2.py DESCRIPTION plots intensity decay curves for demagnetization experiments SYNTAX dmag_magic -h [command line options] INPUT takes magic formatted magic_measurements.txt files OPTIONS -h prints help message and quits ...
python
def main(): """ NAME dmag_magic2.py DESCRIPTION plots intensity decay curves for demagnetization experiments SYNTAX dmag_magic -h [command line options] INPUT takes magic formatted magic_measurements.txt files OPTIONS -h prints help message and quits ...
[ "def", "main", "(", ")", ":", "FIG", "=", "{", "}", "# plot dictionary", "FIG", "[", "'demag'", "]", "=", "1", "# demag is figure 1", "in_file", ",", "plot_key", ",", "LT", "=", "'magic_measurements.txt'", ",", "'er_location_name'", ",", "\"LT-AF-Z\"", "XLP", ...
NAME dmag_magic2.py DESCRIPTION plots intensity decay curves for demagnetization experiments SYNTAX dmag_magic -h [command line options] INPUT takes magic formatted magic_measurements.txt files OPTIONS -h prints help message and quits -f FILE: specify in...
[ "NAME", "dmag_magic2", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/dmag_magic2.py#L11-L164
train
NAME dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_magic2. py AttributeNames dmag_...
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/deprecated/mini_magic.py
main
def main(): """ NAME mini_magic.py DESCRIPTION converts the Yale minispin format to magic_measurements format files SYNTAX mini_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" ...
python
def main(): """ NAME mini_magic.py DESCRIPTION converts the Yale minispin format to magic_measurements format files SYNTAX mini_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" ...
[ "def", "main", "(", ")", ":", "args", "=", "sys", ".", "argv", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "# initialize some stuff", "methcode", "=", "\"LP-NO\"", "demag", "=", "\"N\"", ...
NAME mini_magic.py DESCRIPTION converts the Yale minispin format to magic_measurements format files SYNTAX mini_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" -f FILE: specify input f...
[ "NAME", "mini_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/mini_magic.py#L7-L78
train
NAME uni_magic. py is the main function for the ipython - minispin. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/deprecated/customize_criteria.py
main
def main(): """ NAME customize_criteria.py NB: This program has been deprecated - use demag_gui or thellier_gui to customize acceptance criteria - OR pandas from within a jupyter notebook DESCRIPTION Allows user to specify acceptance criteria, saves them in pmag_criteria...
python
def main(): """ NAME customize_criteria.py NB: This program has been deprecated - use demag_gui or thellier_gui to customize acceptance criteria - OR pandas from within a jupyter notebook DESCRIPTION Allows user to specify acceptance criteria, saves them in pmag_criteria...
[ "def", "main", "(", ")", ":", "infile", ",", "critout", "=", "\"\"", ",", "\"pmag_criteria.txt\"", "# parse command line options", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if",...
NAME customize_criteria.py NB: This program has been deprecated - use demag_gui or thellier_gui to customize acceptance criteria - OR pandas from within a jupyter notebook DESCRIPTION Allows user to specify acceptance criteria, saves them in pmag_criteria.txt SYNTAX ...
[ "NAME", "customize_criteria", ".", "py", "NB", ":", "This", "program", "has", "been", "deprecated", "-", "use", "demag_gui", "or", "thellier_gui", "to", "customize", "acceptance", "criteria", "-", "OR", "pandas", "from", "within", "a", "jupyter", "notebook" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/customize_criteria.py#L7-L72
train
This function is called by the pmag_criteria module. It is used to customize acceptance criteria.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.get_DIR
def get_DIR(self, WD=None): """ open dialog box for choosing a working directory """ if "-WD" in sys.argv and FIRST_RUN: ind = sys.argv.index('-WD') self.WD = sys.argv[ind + 1] elif not WD: # if no arg was passed in for WD, make a dialog to choose one ...
python
def get_DIR(self, WD=None): """ open dialog box for choosing a working directory """ if "-WD" in sys.argv and FIRST_RUN: ind = sys.argv.index('-WD') self.WD = sys.argv[ind + 1] elif not WD: # if no arg was passed in for WD, make a dialog to choose one ...
[ "def", "get_DIR", "(", "self", ",", "WD", "=", "None", ")", ":", "if", "\"-WD\"", "in", "sys", ".", "argv", "and", "FIRST_RUN", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "self", ".", "WD", "=", "sys", ".", "argv", "[...
open dialog box for choosing a working directory
[ "open", "dialog", "box", "for", "choosing", "a", "working", "directory" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L465-L495
train
get a directory name
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.Main_Frame
def Main_Frame(self): """ Build main frame od panel: buttons, etc. choose the first specimen and display data """ #-------------------------------------------------------------------- # initialize first specimen in list as current specimen #----------------------...
python
def Main_Frame(self): """ Build main frame od panel: buttons, etc. choose the first specimen and display data """ #-------------------------------------------------------------------- # initialize first specimen in list as current specimen #----------------------...
[ "def", "Main_Frame", "(", "self", ")", ":", "#--------------------------------------------------------------------", "# initialize first specimen in list as current specimen", "#--------------------------------------------------------------------", "try", ":", "self", ".", "s", "=", "s...
Build main frame od panel: buttons, etc. choose the first specimen and display data
[ "Build", "main", "frame", "od", "panel", ":", "buttons", "etc", ".", "choose", "the", "first", "specimen", "and", "display", "data" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L497-L961
train
Build main frame of the main panel
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_save_interpretation_button
def on_save_interpretation_button(self, event): """ save the current interpretation temporarily (not to a file) """ if "specimen_int_uT" not in self.Data[self.s]['pars']: return if 'deleted' in self.Data[self.s]['pars']: self.Data[self.s]['pars'].pop('dele...
python
def on_save_interpretation_button(self, event): """ save the current interpretation temporarily (not to a file) """ if "specimen_int_uT" not in self.Data[self.s]['pars']: return if 'deleted' in self.Data[self.s]['pars']: self.Data[self.s]['pars'].pop('dele...
[ "def", "on_save_interpretation_button", "(", "self", ",", "event", ")", ":", "if", "\"specimen_int_uT\"", "not", "in", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'pars'", "]", ":", "return", "if", "'deleted'", "in", "self", ".", "Data", "[", ...
save the current interpretation temporarily (not to a file)
[ "save", "the", "current", "interpretation", "temporarily", "(", "not", "to", "a", "file", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L963-L993
train
save the current interpretation temporarily
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_delete_interpretation_button
def on_delete_interpretation_button(self, event): """ delete the current interpretation temporarily (not to a file) """ del self.Data[self.s]['pars'] self.Data[self.s]['pars'] = {} self.Data[self.s]['pars']['deleted'] = True self.Data[self.s]['pars']['lab_dc_fiel...
python
def on_delete_interpretation_button(self, event): """ delete the current interpretation temporarily (not to a file) """ del self.Data[self.s]['pars'] self.Data[self.s]['pars'] = {} self.Data[self.s]['pars']['deleted'] = True self.Data[self.s]['pars']['lab_dc_fiel...
[ "def", "on_delete_interpretation_button", "(", "self", ",", "event", ")", ":", "del", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'pars'", "]", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'pars'", "]", "=", "{", "}", "self", ...
delete the current interpretation temporarily (not to a file)
[ "delete", "the", "current", "interpretation", "temporarily", "(", "not", "to", "a", "file", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L995-L1027
train
Delete the current interpretation temporarily
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.write_acceptance_criteria_to_boxes
def write_acceptance_criteria_to_boxes(self): """ Update paleointensity statistics in acceptance criteria boxes. (after changing temperature bounds or changing specimen) """ self.ignore_parameters, value = {}, '' for crit_short_name in self.preferences['show_statistics_o...
python
def write_acceptance_criteria_to_boxes(self): """ Update paleointensity statistics in acceptance criteria boxes. (after changing temperature bounds or changing specimen) """ self.ignore_parameters, value = {}, '' for crit_short_name in self.preferences['show_statistics_o...
[ "def", "write_acceptance_criteria_to_boxes", "(", "self", ")", ":", "self", ".", "ignore_parameters", ",", "value", "=", "{", "}", ",", "''", "for", "crit_short_name", "in", "self", ".", "preferences", "[", "'show_statistics_on_gui'", "]", ":", "crit", "=", "\...
Update paleointensity statistics in acceptance criteria boxes. (after changing temperature bounds or changing specimen)
[ "Update", "paleointensity", "statistics", "in", "acceptance", "criteria", "boxes", ".", "(", "after", "changing", "temperature", "bounds", "or", "changing", "specimen", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1079-L1119
train
Writes acceptance criteria to the acceptance criteria boxes.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.Add_text
def Add_text(self, s): """ Add text to measurement data window. """ self.logger.DeleteAllItems() FONT_RATIO = self.GUI_RESOLUTION + (self.GUI_RESOLUTION - 1) * 5 if self.GUI_RESOLUTION > 1.1: font1 = wx.Font(11, wx.SWISS, wx.NORMAL, ...
python
def Add_text(self, s): """ Add text to measurement data window. """ self.logger.DeleteAllItems() FONT_RATIO = self.GUI_RESOLUTION + (self.GUI_RESOLUTION - 1) * 5 if self.GUI_RESOLUTION > 1.1: font1 = wx.Font(11, wx.SWISS, wx.NORMAL, ...
[ "def", "Add_text", "(", "self", ",", "s", ")", ":", "self", ".", "logger", ".", "DeleteAllItems", "(", ")", "FONT_RATIO", "=", "self", ".", "GUI_RESOLUTION", "+", "(", "self", ".", "GUI_RESOLUTION", "-", "1", ")", "*", "5", "if", "self", ".", "GUI_RE...
Add text to measurement data window.
[ "Add", "text", "to", "measurement", "data", "window", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1123-L1233
train
Add text to measurement data window.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.select_bounds_in_logger
def select_bounds_in_logger(self, index): """ sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. @param: index - inde...
python
def select_bounds_in_logger(self, index): """ sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. @param: index - inde...
[ "def", "select_bounds_in_logger", "(", "self", ",", "index", ")", ":", "tmin_index", ",", "tmax_index", "=", "\"\"", ",", "\"\"", "if", "str", "(", "self", ".", "tmin_box", ".", "GetValue", "(", ")", ")", "!=", "\"\"", ":", "tmin_index", "=", "self", "...
sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called. @param: index - index of the step to select in the logger
[ "sets", "index", "as", "the", "upper", "or", "lower", "bound", "of", "a", "fit", "based", "on", "what", "the", "other", "bound", "is", "and", "selects", "it", "in", "the", "logger", ".", "Requires", "2", "calls", "to", "completely", "update", "a", "int...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1246-L1296
train
Selects the index in the logger based on what the other bound is and selects it in the logger.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.create_menu
def create_menu(self): """ Create menu bar """ self.menubar = wx.MenuBar() menu_preferences = wx.Menu() m_preferences_apperance = menu_preferences.Append( -1, "&Appearence preferences", "") self.Bind(wx.EVT_MENU, self.on_menu_appearance_preferences, ...
python
def create_menu(self): """ Create menu bar """ self.menubar = wx.MenuBar() menu_preferences = wx.Menu() m_preferences_apperance = menu_preferences.Append( -1, "&Appearence preferences", "") self.Bind(wx.EVT_MENU, self.on_menu_appearance_preferences, ...
[ "def", "create_menu", "(", "self", ")", ":", "self", ".", "menubar", "=", "wx", ".", "MenuBar", "(", ")", "menu_preferences", "=", "wx", ".", "Menu", "(", ")", "m_preferences_apperance", "=", "menu_preferences", ".", "Append", "(", "-", "1", ",", "\"&App...
Create menu bar
[ "Create", "menu", "bar" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1353-L1559
train
Create menu bar
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.update_selection
def update_selection(self): """ update figures and statistics windows with a new selection of specimen """ # clear all boxes self.clear_boxes() self.draw_figure(self.s) # update temperature list if self.Data[self.s]['T_or_MW'] == "T": self.te...
python
def update_selection(self): """ update figures and statistics windows with a new selection of specimen """ # clear all boxes self.clear_boxes() self.draw_figure(self.s) # update temperature list if self.Data[self.s]['T_or_MW'] == "T": self.te...
[ "def", "update_selection", "(", "self", ")", ":", "# clear all boxes", "self", ".", "clear_boxes", "(", ")", "self", ".", "draw_figure", "(", "self", ".", "s", ")", "# update temperature list", "if", "self", ".", "Data", "[", "self", ".", "s", "]", "[", ...
update figures and statistics windows with a new selection of specimen
[ "update", "figures", "and", "statistics", "windows", "with", "a", "new", "selection", "of", "specimen" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1564-L1590
train
update figures and statistics windows with a new selection of specimen
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.onSelect_specimen
def onSelect_specimen(self, event): """ update figures and text when a new specimen is selected """ new_s = self.specimens_box.GetValue() if self.select_specimen(new_s): self.update_selection() else: self.specimens_box.SetValue(self.s) ...
python
def onSelect_specimen(self, event): """ update figures and text when a new specimen is selected """ new_s = self.specimens_box.GetValue() if self.select_specimen(new_s): self.update_selection() else: self.specimens_box.SetValue(self.s) ...
[ "def", "onSelect_specimen", "(", "self", ",", "event", ")", ":", "new_s", "=", "self", ".", "specimens_box", ".", "GetValue", "(", ")", "if", "self", ".", "select_specimen", "(", "new_s", ")", ":", "self", ".", "update_selection", "(", ")", "else", ":", ...
update figures and text when a new specimen is selected
[ "update", "figures", "and", "text", "when", "a", "new", "specimen", "is", "selected" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1615-L1625
train
update figures and text when a new specimen is selected
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_info_click
def on_info_click(self, event): """ Show popup info window when user clicks "?" """ def on_close(event, wind): wind.Close() wind.Destroy() event.Skip() wind = wx.PopupTransientWindow(self, wx.RAISED_BORDER) if self.auto_save.GetValue(): ...
python
def on_info_click(self, event): """ Show popup info window when user clicks "?" """ def on_close(event, wind): wind.Close() wind.Destroy() event.Skip() wind = wx.PopupTransientWindow(self, wx.RAISED_BORDER) if self.auto_save.GetValue(): ...
[ "def", "on_info_click", "(", "self", ",", "event", ")", ":", "def", "on_close", "(", "event", ",", "wind", ")", ":", "wind", ".", "Close", "(", ")", "wind", ".", "Destroy", "(", ")", "event", ".", "Skip", "(", ")", "wind", "=", "wx", ".", "PopupT...
Show popup info window when user clicks "?"
[ "Show", "popup", "info", "window", "when", "user", "clicks", "?" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1683-L1705
train
Show popup info window when user clicks "?"
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_prev_button
def on_prev_button(self, event): """ update figures and text when a previous button is selected """ if 'saved' not in self.Data[self.s]['pars'] or self.Data[self.s]['pars']['saved'] != True: # check preferences if self.auto_save.GetValue(): self.on...
python
def on_prev_button(self, event): """ update figures and text when a previous button is selected """ if 'saved' not in self.Data[self.s]['pars'] or self.Data[self.s]['pars']['saved'] != True: # check preferences if self.auto_save.GetValue(): self.on...
[ "def", "on_prev_button", "(", "self", ",", "event", ")", ":", "if", "'saved'", "not", "in", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'pars'", "]", "or", "self", ".", "Data", "[", "self", ".", "s", "]", "[", "'pars'", "]", "[", "'s...
update figures and text when a previous button is selected
[ "update", "figures", "and", "text", "when", "a", "previous", "button", "is", "selected" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1707-L1733
train
update figures and text when a previous button is selected
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.clear_boxes
def clear_boxes(self): """ Clear all boxes """ self.tmin_box.Clear() self.tmin_box.SetItems(self.T_list) self.tmin_box.SetSelection(-1) self.tmax_box.Clear() self.tmax_box.SetItems(self.T_list) self.tmax_box.SetSelection(-1) self.Blab_win...
python
def clear_boxes(self): """ Clear all boxes """ self.tmin_box.Clear() self.tmin_box.SetItems(self.T_list) self.tmin_box.SetSelection(-1) self.tmax_box.Clear() self.tmax_box.SetItems(self.T_list) self.tmax_box.SetSelection(-1) self.Blab_win...
[ "def", "clear_boxes", "(", "self", ")", ":", "self", ".", "tmin_box", ".", "Clear", "(", ")", "self", ".", "tmin_box", ".", "SetItems", "(", "self", ".", "T_list", ")", "self", ".", "tmin_box", ".", "SetSelection", "(", "-", "1", ")", "self", ".", ...
Clear all boxes
[ "Clear", "all", "boxes" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L1737-L1775
train
Clear all boxes in the current locale.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.read_preferences_file
def read_preferences_file(self): """ If json preferences file exists, read it in. """ user_data_dir = find_pmag_dir.find_user_data_dir("thellier_gui") if not user_data_dir: return {} if os.path.exists(user_data_dir): pref_file = os.path.join(user_d...
python
def read_preferences_file(self): """ If json preferences file exists, read it in. """ user_data_dir = find_pmag_dir.find_user_data_dir("thellier_gui") if not user_data_dir: return {} if os.path.exists(user_data_dir): pref_file = os.path.join(user_d...
[ "def", "read_preferences_file", "(", "self", ")", ":", "user_data_dir", "=", "find_pmag_dir", ".", "find_user_data_dir", "(", "\"thellier_gui\"", ")", "if", "not", "user_data_dir", ":", "return", "{", "}", "if", "os", ".", "path", ".", "exists", "(", "user_dat...
If json preferences file exists, read it in.
[ "If", "json", "preferences", "file", "exists", "read", "it", "in", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2174-L2186
train
Read json preferences file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.write_preferences_file
def write_preferences_file(self): """ Write json preferences file to (platform specific) user data directory, or PmagPy directory if appdirs module is missing. """ user_data_dir = find_pmag_dir.find_user_data_dir("thellier_gui") if not os.path.exists(user_data_dir): ...
python
def write_preferences_file(self): """ Write json preferences file to (platform specific) user data directory, or PmagPy directory if appdirs module is missing. """ user_data_dir = find_pmag_dir.find_user_data_dir("thellier_gui") if not os.path.exists(user_data_dir): ...
[ "def", "write_preferences_file", "(", "self", ")", ":", "user_data_dir", "=", "find_pmag_dir", ".", "find_user_data_dir", "(", "\"thellier_gui\"", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "user_data_dir", ")", ":", "find_pmag_dir", ".", "make_use...
Write json preferences file to (platform specific) user data directory, or PmagPy directory if appdirs module is missing.
[ "Write", "json", "preferences", "file", "to", "(", "platform", "specific", ")", "user", "data", "directory", "or", "PmagPy", "directory", "if", "appdirs", "module", "is", "missing", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2188-L2199
train
Write json preferences file to PmagPy directory.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_exit
def on_menu_exit(self, event): """ Runs whenever Thellier GUI exits """ if self.close_warning: TEXT = "Data is not saved to a file yet!\nTo properly save your data:\n1) Analysis --> Save current interpretations to a redo file.\nor\n1) File --> Save MagIC tables.\n\n Press OK ...
python
def on_menu_exit(self, event): """ Runs whenever Thellier GUI exits """ if self.close_warning: TEXT = "Data is not saved to a file yet!\nTo properly save your data:\n1) Analysis --> Save current interpretations to a redo file.\nor\n1) File --> Save MagIC tables.\n\n Press OK ...
[ "def", "on_menu_exit", "(", "self", ",", "event", ")", ":", "if", "self", ".", "close_warning", ":", "TEXT", "=", "\"Data is not saved to a file yet!\\nTo properly save your data:\\n1) Analysis --> Save current interpretations to a redo file.\\nor\\n1) File --> Save MagIC tables.\\n\\n...
Runs whenever Thellier GUI exits
[ "Runs", "whenever", "Thellier", "GUI", "exits" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2283-L2309
train
Runs whenever Thellier GUI exits and closes the current instance of the class.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_previous_interpretation
def on_menu_previous_interpretation(self, event): """ Create and show the Open FileDialog for upload previous interpretation input should be a valid "redo file": [specimen name] [tmin(kelvin)] [tmax(kelvin)] """ save_current_specimen = self.s dlg = wx.FileDialog( ...
python
def on_menu_previous_interpretation(self, event): """ Create and show the Open FileDialog for upload previous interpretation input should be a valid "redo file": [specimen name] [tmin(kelvin)] [tmax(kelvin)] """ save_current_specimen = self.s dlg = wx.FileDialog( ...
[ "def", "on_menu_previous_interpretation", "(", "self", ",", "event", ")", ":", "save_current_specimen", "=", "self", ".", "s", "dlg", "=", "wx", ".", "FileDialog", "(", "self", ",", "message", "=", "\"choose a file in a pmagpy redo format\"", ",", "defaultDir", "=...
Create and show the Open FileDialog for upload previous interpretation input should be a valid "redo file": [specimen name] [tmin(kelvin)] [tmax(kelvin)]
[ "Create", "and", "show", "the", "Open", "FileDialog", "for", "upload", "previous", "interpretation", "input", "should", "be", "a", "valid", "redo", "file", ":", "[", "specimen", "name", "]", "[", "tmin", "(", "kelvin", ")", "]", "[", "tmax", "(", "kelvin...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2420-L2444
train
Open FileDialog for upload previous interpretation
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_criteria_file
def on_menu_criteria_file(self, event): """ read pmag_criteria.txt file and open change criteria dialog """ if self.data_model == 3: dlg = wx.FileDialog( self, message="choose a file in MagIC Data Model 3.0 format", defaultDir=self.WD,...
python
def on_menu_criteria_file(self, event): """ read pmag_criteria.txt file and open change criteria dialog """ if self.data_model == 3: dlg = wx.FileDialog( self, message="choose a file in MagIC Data Model 3.0 format", defaultDir=self.WD,...
[ "def", "on_menu_criteria_file", "(", "self", ",", "event", ")", ":", "if", "self", ".", "data_model", "==", "3", ":", "dlg", "=", "wx", ".", "FileDialog", "(", "self", ",", "message", "=", "\"choose a file in MagIC Data Model 3.0 format\"", ",", "defaultDir", ...
read pmag_criteria.txt file and open change criteria dialog
[ "read", "pmag_criteria", ".", "txt", "file", "and", "open", "change", "criteria", "dialog" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2617-L2704
train
read pmag_criteria. txt file and open change criteria dialog
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_criteria
def on_menu_criteria(self, event): """ Change acceptance criteria and save it to the criteria file (data_model=2: pmag_criteria.txt; data_model=3: criteria.txt) """ dia = thellier_gui_dialogs.Criteria_Dialog( None, self.acceptance_criteria, self.preferences, title='S...
python
def on_menu_criteria(self, event): """ Change acceptance criteria and save it to the criteria file (data_model=2: pmag_criteria.txt; data_model=3: criteria.txt) """ dia = thellier_gui_dialogs.Criteria_Dialog( None, self.acceptance_criteria, self.preferences, title='S...
[ "def", "on_menu_criteria", "(", "self", ",", "event", ")", ":", "dia", "=", "thellier_gui_dialogs", ".", "Criteria_Dialog", "(", "None", ",", "self", ".", "acceptance_criteria", ",", "self", ".", "preferences", ",", "title", "=", "'Set Acceptance Criteria'", ")"...
Change acceptance criteria and save it to the criteria file (data_model=2: pmag_criteria.txt; data_model=3: criteria.txt)
[ "Change", "acceptance", "criteria", "and", "save", "it", "to", "the", "criteria", "file", "(", "data_model", "=", "2", ":", "pmag_criteria", ".", "txt", ";", "data_model", "=", "3", ":", "criteria", ".", "txt", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2708-L2720
train
Show the dialog to change the acceptance criteria and save it to the criteria file
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.On_close_criteria_box
def On_close_criteria_box(self, dia): """ after criteria dialog window is closed. Take the acceptance criteria values and update self.acceptance_criteria """ criteria_list = list(self.acceptance_criteria.keys()) criteria_list.sort() #---------------------...
python
def On_close_criteria_box(self, dia): """ after criteria dialog window is closed. Take the acceptance criteria values and update self.acceptance_criteria """ criteria_list = list(self.acceptance_criteria.keys()) criteria_list.sort() #---------------------...
[ "def", "On_close_criteria_box", "(", "self", ",", "dia", ")", ":", "criteria_list", "=", "list", "(", "self", ".", "acceptance_criteria", ".", "keys", "(", ")", ")", "criteria_list", ".", "sort", "(", ")", "#---------------------------------------", "# check if av...
after criteria dialog window is closed. Take the acceptance criteria values and update self.acceptance_criteria
[ "after", "criteria", "dialog", "window", "is", "closed", ".", "Take", "the", "acceptance", "criteria", "values", "and", "update", "self", ".", "acceptance_criteria" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2722-L2794
train
Function is called when the close criteria dialog window is closed.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.recalculate_satistics
def recalculate_satistics(self): ''' update self.Data[specimen]['pars'] for all specimens. ''' gframe = wx.BusyInfo( "Re-calculating statistics for all specimens\n Please wait..", self) for specimen in list(self.Data.keys()): if 'pars' not in list(self.Da...
python
def recalculate_satistics(self): ''' update self.Data[specimen]['pars'] for all specimens. ''' gframe = wx.BusyInfo( "Re-calculating statistics for all specimens\n Please wait..", self) for specimen in list(self.Data.keys()): if 'pars' not in list(self.Da...
[ "def", "recalculate_satistics", "(", "self", ")", ":", "gframe", "=", "wx", ".", "BusyInfo", "(", "\"Re-calculating statistics for all specimens\\n Please wait..\"", ",", "self", ")", "for", "specimen", "in", "list", "(", "self", ".", "Data", ".", "keys", "(", "...
update self.Data[specimen]['pars'] for all specimens.
[ "update", "self", ".", "Data", "[", "specimen", "]", "[", "pars", "]", "for", "all", "specimens", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2800-L2820
train
Recalculates the statistics for all the available suds.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.read_criteria_file
def read_criteria_file(self, criteria_file): ''' read criteria file. initialize self.acceptance_criteria try to guess if averaging by sample or by site. ''' if self.data_model == 3: self.acceptance_criteria = pmag.initialize_acceptance_criteria( ...
python
def read_criteria_file(self, criteria_file): ''' read criteria file. initialize self.acceptance_criteria try to guess if averaging by sample or by site. ''' if self.data_model == 3: self.acceptance_criteria = pmag.initialize_acceptance_criteria( ...
[ "def", "read_criteria_file", "(", "self", ",", "criteria_file", ")", ":", "if", "self", ".", "data_model", "==", "3", ":", "self", ".", "acceptance_criteria", "=", "pmag", ".", "initialize_acceptance_criteria", "(", "data_model", "=", "self", ".", "data_model", ...
read criteria file. initialize self.acceptance_criteria try to guess if averaging by sample or by site.
[ "read", "criteria", "file", ".", "initialize", "self", ".", "acceptance_criteria", "try", "to", "guess", "if", "averaging", "by", "sample", "or", "by", "site", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2824-L2884
train
read the criteria file and initialize self. acceptance_criteria
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_save_interpretation
def on_menu_save_interpretation(self, event): ''' save interpretations to a redo file ''' thellier_gui_redo_file = open( os.path.join(self.WD, "thellier_GUI.redo"), 'w') #-------------------------------------------------- # write interpretations to thellier...
python
def on_menu_save_interpretation(self, event): ''' save interpretations to a redo file ''' thellier_gui_redo_file = open( os.path.join(self.WD, "thellier_GUI.redo"), 'w') #-------------------------------------------------- # write interpretations to thellier...
[ "def", "on_menu_save_interpretation", "(", "self", ",", "event", ")", ":", "thellier_gui_redo_file", "=", "open", "(", "os", ".", "path", ".", "join", "(", "self", ".", "WD", ",", "\"thellier_GUI.redo\"", ")", ",", "'w'", ")", "#---------------------------------...
save interpretations to a redo file
[ "save", "interpretations", "to", "a", "redo", "file" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2886-L2918
train
save interpretations to a redo file
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_clear_interpretation
def on_menu_clear_interpretation(self, event): ''' clear all current interpretations. ''' # delete all previous interpretation for sp in list(self.Data.keys()): del self.Data[sp]['pars'] self.Data[sp]['pars'] = {} self.Data[sp]['pars']['lab_d...
python
def on_menu_clear_interpretation(self, event): ''' clear all current interpretations. ''' # delete all previous interpretation for sp in list(self.Data.keys()): del self.Data[sp]['pars'] self.Data[sp]['pars'] = {} self.Data[sp]['pars']['lab_d...
[ "def", "on_menu_clear_interpretation", "(", "self", ",", "event", ")", ":", "# delete all previous interpretation", "for", "sp", "in", "list", "(", "self", ".", "Data", ".", "keys", "(", ")", ")", ":", "del", "self", ".", "Data", "[", "sp", "]", "[", "'...
clear all current interpretations.
[ "clear", "all", "current", "interpretations", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L2920-L2937
train
clear all current interpretations.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.read_redo_file
def read_redo_file(self, redo_file): """ Read previous interpretation from a redo file and update gui with the new interpretation """ self.GUI_log.write( "-I- reading redo file and processing new temperature bounds") self.redo_specimens = {} # first de...
python
def read_redo_file(self, redo_file): """ Read previous interpretation from a redo file and update gui with the new interpretation """ self.GUI_log.write( "-I- reading redo file and processing new temperature bounds") self.redo_specimens = {} # first de...
[ "def", "read_redo_file", "(", "self", ",", "redo_file", ")", ":", "self", ".", "GUI_log", ".", "write", "(", "\"-I- reading redo file and processing new temperature bounds\"", ")", "self", ".", "redo_specimens", "=", "{", "}", "# first delete all previous interpretation",...
Read previous interpretation from a redo file and update gui with the new interpretation
[ "Read", "previous", "interpretation", "from", "a", "redo", "file", "and", "update", "gui", "with", "the", "new", "interpretation" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L3683-L3755
train
Read the previous interpretation from a redo file and update the gui with the new interpretation
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.on_menu_prepare_magic_results_tables
def on_menu_prepare_magic_results_tables(self, event): """ Menubar --> File --> Save MagIC tables """ # write a redo file try: self.on_menu_save_interpretation(None) except Exception as ex: print('-W-', ex) pass if self.data_mod...
python
def on_menu_prepare_magic_results_tables(self, event): """ Menubar --> File --> Save MagIC tables """ # write a redo file try: self.on_menu_save_interpretation(None) except Exception as ex: print('-W-', ex) pass if self.data_mod...
[ "def", "on_menu_prepare_magic_results_tables", "(", "self", ",", "event", ")", ":", "# write a redo file", "try", ":", "self", ".", "on_menu_save_interpretation", "(", "None", ")", "except", "Exception", "as", "ex", ":", "print", "(", "'-W-'", ",", "ex", ")", ...
Menubar --> File --> Save MagIC tables
[ "Menubar", "--", ">", "File", "--", ">", "Save", "MagIC", "tables" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L3791-L4588
train
This function is called when the user wants to prepare the MagIC tables for the current data model.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.read_er_ages_file
def read_er_ages_file(self, path, ignore_lines_n, sort_by_these_names): ''' read er_ages, sort it by site or sample (the header that is not empty) and convert ages to calendar year ''' DATA = {} fin = open(path, 'r') # ignore first lines for i in range(ig...
python
def read_er_ages_file(self, path, ignore_lines_n, sort_by_these_names): ''' read er_ages, sort it by site or sample (the header that is not empty) and convert ages to calendar year ''' DATA = {} fin = open(path, 'r') # ignore first lines for i in range(ig...
[ "def", "read_er_ages_file", "(", "self", ",", "path", ",", "ignore_lines_n", ",", "sort_by_these_names", ")", ":", "DATA", "=", "{", "}", "fin", "=", "open", "(", "path", ",", "'r'", ")", "# ignore first lines", "for", "i", "in", "range", "(", "ignore_line...
read er_ages, sort it by site or sample (the header that is not empty) and convert ages to calendar year
[ "read", "er_ages", "sort", "it", "by", "site", "or", "sample", "(", "the", "header", "that", "is", "not", "empty", ")", "and", "convert", "ages", "to", "calendar", "year" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L4629-L4658
train
read er_ages file and convert it by site or sample names and return a dictionary of calendar year values.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.calculate_sample_mean
def calculate_sample_mean(self, Data_sample_or_site): ''' Data_sample_or_site is a dictonary holding the samples_or_sites mean Data_sample_or_site ={} Data_sample_or_site[specimen]=B (in units of microT) ''' pars = {} tmp_B = [] for spec in list(Data_samp...
python
def calculate_sample_mean(self, Data_sample_or_site): ''' Data_sample_or_site is a dictonary holding the samples_or_sites mean Data_sample_or_site ={} Data_sample_or_site[specimen]=B (in units of microT) ''' pars = {} tmp_B = [] for spec in list(Data_samp...
[ "def", "calculate_sample_mean", "(", "self", ",", "Data_sample_or_site", ")", ":", "pars", "=", "{", "}", "tmp_B", "=", "[", "]", "for", "spec", "in", "list", "(", "Data_sample_or_site", ".", "keys", "(", ")", ")", ":", "if", "'B'", "in", "list", "(", ...
Data_sample_or_site is a dictonary holding the samples_or_sites mean Data_sample_or_site ={} Data_sample_or_site[specimen]=B (in units of microT)
[ "Data_sample_or_site", "is", "a", "dictonary", "holding", "the", "samples_or_sites", "mean", "Data_sample_or_site", "=", "{}", "Data_sample_or_site", "[", "specimen", "]", "=", "B", "(", "in", "units", "of", "microT", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L4673-L4775
train
Calculates the sample mean of the given samples_or_sites.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.convert_ages_to_calendar_year
def convert_ages_to_calendar_year(self, er_ages_rec): ''' convert all age units to calendar year ''' if ("age" not in list(er_ages_rec.keys())) or (cb.is_null(er_ages_rec['age'], False)): return(er_ages_rec) if ("age_unit" not in list(er_ages_rec.keys())) or (cb.is_nu...
python
def convert_ages_to_calendar_year(self, er_ages_rec): ''' convert all age units to calendar year ''' if ("age" not in list(er_ages_rec.keys())) or (cb.is_null(er_ages_rec['age'], False)): return(er_ages_rec) if ("age_unit" not in list(er_ages_rec.keys())) or (cb.is_nu...
[ "def", "convert_ages_to_calendar_year", "(", "self", ",", "er_ages_rec", ")", ":", "if", "(", "\"age\"", "not", "in", "list", "(", "er_ages_rec", ".", "keys", "(", ")", ")", ")", "or", "(", "cb", ".", "is_null", "(", "er_ages_rec", "[", "'age'", "]", "...
convert all age units to calendar year
[ "convert", "all", "age", "units", "to", "calendar", "year" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L4777-L4839
train
convert all age units to calendar year
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.get_new_T_PI_parameters
def get_new_T_PI_parameters(self, event): """ calcualte statisics when temperatures are selected """ # remember the last saved interpretation if "saved" in list(self.pars.keys()): if self.pars['saved']: self.last_saved_pars = {} for ke...
python
def get_new_T_PI_parameters(self, event): """ calcualte statisics when temperatures are selected """ # remember the last saved interpretation if "saved" in list(self.pars.keys()): if self.pars['saved']: self.last_saved_pars = {} for ke...
[ "def", "get_new_T_PI_parameters", "(", "self", ",", "event", ")", ":", "# remember the last saved interpretation", "if", "\"saved\"", "in", "list", "(", "self", ".", "pars", ".", "keys", "(", ")", ")", ":", "if", "self", ".", "pars", "[", "'saved'", "]", "...
calcualte statisics when temperatures are selected
[ "calcualte", "statisics", "when", "temperatures", "are", "selected" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L6066-L6102
train
get new interpretation parameters for temperatures
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.add_thellier_gui_criteria
def add_thellier_gui_criteria(self): '''criteria used only in thellier gui these criteria are not written to pmag_criteria.txt ''' category = "thellier_gui" for crit in ['sample_int_n_outlier_check', 'site_int_n_outlier_check']: self.acceptance_criteria[crit] = {} ...
python
def add_thellier_gui_criteria(self): '''criteria used only in thellier gui these criteria are not written to pmag_criteria.txt ''' category = "thellier_gui" for crit in ['sample_int_n_outlier_check', 'site_int_n_outlier_check']: self.acceptance_criteria[crit] = {} ...
[ "def", "add_thellier_gui_criteria", "(", "self", ")", ":", "category", "=", "\"thellier_gui\"", "for", "crit", "in", "[", "'sample_int_n_outlier_check'", ",", "'site_int_n_outlier_check'", "]", ":", "self", ".", "acceptance_criteria", "[", "crit", "]", "=", "{", "...
criteria used only in thellier gui these criteria are not written to pmag_criteria.txt
[ "criteria", "used", "only", "in", "thellier", "gui", "these", "criteria", "are", "not", "written", "to", "pmag_criteria", ".", "txt" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L6383-L6433
train
add the available criteria used only in thellier gui only
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/thellier_gui.py
Arai_GUI.sortarai
def sortarai(self, datablock, s, Zdiff): """ sorts data block in to first_Z, first_I, etc. """ first_Z, first_I, zptrm_check, ptrm_check, ptrm_tail = [], [], [], [], [] field, phi, theta = "", "", "" starthere = 0 Treat_I, Treat_Z, Treat_PZ, Treat_PI, Treat_M, Tr...
python
def sortarai(self, datablock, s, Zdiff): """ sorts data block in to first_Z, first_I, etc. """ first_Z, first_I, zptrm_check, ptrm_check, ptrm_tail = [], [], [], [], [] field, phi, theta = "", "", "" starthere = 0 Treat_I, Treat_Z, Treat_PZ, Treat_PI, Treat_M, Tr...
[ "def", "sortarai", "(", "self", ",", "datablock", ",", "s", ",", "Zdiff", ")", ":", "first_Z", ",", "first_I", ",", "zptrm_check", ",", "ptrm_check", ",", "ptrm_tail", "=", "[", "]", ",", "[", "]", ",", "[", "]", ",", "[", "]", ",", "[", "]", "...
sorts data block in to first_Z, first_I, etc.
[ "sorts", "data", "block", "in", "to", "first_Z", "first_I", "etc", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/thellier_gui.py#L7913-L8290
train
sortarai - Sorts the data block in to first_Z first_I etc.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/cart_dir.py
main
def main(): """ NAME cart_dir.py DESCRIPTION converts cartesian coordinates to geomagnetic elements INPUT (COMMAND LINE ENTRY) x1 x2 x3 if only two columns, assumes magnitude of unity OUTPUT declination inclination magnitude SYNTAX ...
python
def main(): """ NAME cart_dir.py DESCRIPTION converts cartesian coordinates to geomagnetic elements INPUT (COMMAND LINE ENTRY) x1 x2 x3 if only two columns, assumes magnitude of unity OUTPUT declination inclination magnitude SYNTAX ...
[ "def", "main", "(", ")", ":", "ofile", "=", "\"\"", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-F'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "ar...
NAME cart_dir.py DESCRIPTION converts cartesian coordinates to geomagnetic elements INPUT (COMMAND LINE ENTRY) x1 x2 x3 if only two columns, assumes magnitude of unity OUTPUT declination inclination magnitude SYNTAX cart_dir.py [comman...
[ "NAME", "cart_dir", ".", "py", "DESCRIPTION", "converts", "cartesian", "coordinates", "to", "geomagnetic", "elements", "INPUT", "(", "COMMAND", "LINE", "ENTRY", ")", "x1", "x2", "x3", "if", "only", "two", "columns", "assumes", "magnitude", "of", "unity", "OUTP...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/cart_dir.py#L8-L74
train
NAME get_internal_cart_file is the main function of pmag. get_internal_cart_file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/deprecated/susar4_asc_magic.py
main
def main(): """ NAME susar4-asc_magic.py DESCRIPTION converts ascii files generated by SUSAR ver.4.0 to MagIC formated files for use with PmagPy plotting software SYNTAX susar4-asc_magic.py -h [command line options] OPTIONS -h: prints the help message and q...
python
def main(): """ NAME susar4-asc_magic.py DESCRIPTION converts ascii files generated by SUSAR ver.4.0 to MagIC formated files for use with PmagPy plotting software SYNTAX susar4-asc_magic.py -h [command line options] OPTIONS -h: prints the help message and q...
[ "def", "main", "(", ")", ":", "citation", "=", "'This study'", "cont", "=", "0", "samp_con", ",", "Z", "=", "\"1\"", ",", "1", "AniRecSs", ",", "AniRecs", ",", "SpecRecs", ",", "SampRecs", ",", "SiteRecs", ",", "MeasRecs", "=", "[", "]", ",", "[", ...
NAME susar4-asc_magic.py DESCRIPTION converts ascii files generated by SUSAR ver.4.0 to MagIC formated files for use with PmagPy plotting software SYNTAX susar4-asc_magic.py -h [command line options] OPTIONS -h: prints the help message and quits -f FILE: sp...
[ "NAME", "susar4", "-", "asc_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/susar4_asc_magic.py#L6-L297
train
This function is the main entry point for the magic file system. It is the main entry point for the magic file system.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/histplot.py
main
def main(): """ NAME histplot.py DESCRIPTION makes histograms for data OPTIONS -h prints help message and quits -f input file name -b binsize -fmt [svg,png,pdf,eps,jpg] specify format for image, default is svg -sav save figure and quit -F output ...
python
def main(): """ NAME histplot.py DESCRIPTION makes histograms for data OPTIONS -h prints help message and quits -f input file name -b binsize -fmt [svg,png,pdf,eps,jpg] specify format for image, default is svg -sav save figure and quit -F output ...
[ "def", "main", "(", ")", ":", "save_plots", "=", "False", "if", "'-sav'", "in", "sys", ".", "argv", ":", "save_plots", "=", "True", "interactive", "=", "False", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", ...
NAME histplot.py DESCRIPTION makes histograms for data OPTIONS -h prints help message and quits -f input file name -b binsize -fmt [svg,png,pdf,eps,jpg] specify format for image, default is svg -sav save figure and quit -F output file name, default is hi...
[ "NAME", "histplot", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/histplot.py#L14-L69
train
NAME is the main function for the histplot. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/command_line_extractor.py
extract_args
def extract_args(argv): """ take sys.argv that is used to call a command-line script and return a correctly split list of arguments for example, this input: ["eqarea.py", "-f", "infile", "-F", "outfile", "-A"] will return this output: [['f', 'infile'], ['F', 'outfile'], ['A']] """ string = " ".j...
python
def extract_args(argv): """ take sys.argv that is used to call a command-line script and return a correctly split list of arguments for example, this input: ["eqarea.py", "-f", "infile", "-F", "outfile", "-A"] will return this output: [['f', 'infile'], ['F', 'outfile'], ['A']] """ string = " ".j...
[ "def", "extract_args", "(", "argv", ")", ":", "string", "=", "\" \"", ".", "join", "(", "argv", ")", "string", "=", "string", ".", "split", "(", "' -'", ")", "program", "=", "string", "[", "0", "]", "arguments", "=", "[", "s", ".", "split", "(", ...
take sys.argv that is used to call a command-line script and return a correctly split list of arguments for example, this input: ["eqarea.py", "-f", "infile", "-F", "outfile", "-A"] will return this output: [['f', 'infile'], ['F', 'outfile'], ['A']]
[ "take", "sys", ".", "argv", "that", "is", "used", "to", "call", "a", "command", "-", "line", "script", "and", "return", "a", "correctly", "split", "list", "of", "arguments", "for", "example", "this", "input", ":", "[", "eqarea", ".", "py", "-", "f", ...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/command_line_extractor.py#L38-L48
train
extracts the arguments from sys. argv that is used to call a command - line script and returns a correctly split list of arguments
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/command_line_extractor.py
check_args
def check_args(arguments, data_frame): """ check arguments against a command_line_dataframe. checks that: all arguments are valid all required arguments are present default values are used where needed """ stripped_args = [a[0] for a in arguments] df = data_frame.df # first make ...
python
def check_args(arguments, data_frame): """ check arguments against a command_line_dataframe. checks that: all arguments are valid all required arguments are present default values are used where needed """ stripped_args = [a[0] for a in arguments] df = data_frame.df # first make ...
[ "def", "check_args", "(", "arguments", ",", "data_frame", ")", ":", "stripped_args", "=", "[", "a", "[", "0", "]", "for", "a", "in", "arguments", "]", "df", "=", "data_frame", ".", "df", "# first make sure all args are valid", "for", "a", "in", "arguments", ...
check arguments against a command_line_dataframe. checks that: all arguments are valid all required arguments are present default values are used where needed
[ "check", "arguments", "against", "a", "command_line_dataframe", ".", "checks", "that", ":", "all", "arguments", "are", "valid", "all", "required", "arguments", "are", "present", "default", "values", "are", "used", "where", "needed" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/command_line_extractor.py#L50-L83
train
checks that all arguments are valid and assign any required arguments to the passed in list of available objects
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
dialogs/drop_down_menus3.py
Menus.InitUI
def InitUI(self): """ Initialize interface for drop down menu """ if self.data_type in ['orient', 'ages']: belongs_to = [] else: parent_table_name = self.parent_type + "s" if parent_table_name in self.contribution.tables: belong...
python
def InitUI(self): """ Initialize interface for drop down menu """ if self.data_type in ['orient', 'ages']: belongs_to = [] else: parent_table_name = self.parent_type + "s" if parent_table_name in self.contribution.tables: belong...
[ "def", "InitUI", "(", "self", ")", ":", "if", "self", ".", "data_type", "in", "[", "'orient'", ",", "'ages'", "]", ":", "belongs_to", "=", "[", "]", "else", ":", "parent_table_name", "=", "self", ".", "parent_type", "+", "\"s\"", "if", "parent_table_name...
Initialize interface for drop down menu
[ "Initialize", "interface", "for", "drop", "down", "menu" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/drop_down_menus3.py#L51-L87
train
Initialize the UI for the current object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
dialogs/drop_down_menus3.py
Menus.add_drop_down
def add_drop_down(self, col_number, col_label): """ Add a correctly formatted drop-down-menu for given col_label, if required or suggested. Otherwise do nothing. Parameters ---------- col_number : int grid position at which to add a drop down menu...
python
def add_drop_down(self, col_number, col_label): """ Add a correctly formatted drop-down-menu for given col_label, if required or suggested. Otherwise do nothing. Parameters ---------- col_number : int grid position at which to add a drop down menu...
[ "def", "add_drop_down", "(", "self", ",", "col_number", ",", "col_label", ")", ":", "if", "col_label", ".", "endswith", "(", "'**'", ")", "or", "col_label", ".", "endswith", "(", "'^^'", ")", ":", "col_label", "=", "col_label", "[", ":", "-", "2", "]",...
Add a correctly formatted drop-down-menu for given col_label, if required or suggested. Otherwise do nothing. Parameters ---------- col_number : int grid position at which to add a drop down menu col_label : str column name
[ "Add", "a", "correctly", "formatted", "drop", "-", "down", "-", "menu", "for", "given", "col_label", "if", "required", "or", "suggested", ".", "Otherwise", "do", "nothing", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/drop_down_menus3.py#L96-L172
train
Adds a correctly formatted drop - down menu for given col_label.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
dialogs/drop_down_menus3.py
Menus.add_method_drop_down
def add_method_drop_down(self, col_number, col_label): """ Add drop-down-menu options for magic_method_codes columns """ if self.data_type == 'ages': method_list = self.contribution.vocab.age_methods else: method_list = self.contribution.vocab.age_methods....
python
def add_method_drop_down(self, col_number, col_label): """ Add drop-down-menu options for magic_method_codes columns """ if self.data_type == 'ages': method_list = self.contribution.vocab.age_methods else: method_list = self.contribution.vocab.age_methods....
[ "def", "add_method_drop_down", "(", "self", ",", "col_number", ",", "col_label", ")", ":", "if", "self", ".", "data_type", "==", "'ages'", ":", "method_list", "=", "self", ".", "contribution", ".", "vocab", ".", "age_methods", "else", ":", "method_list", "="...
Add drop-down-menu options for magic_method_codes columns
[ "Add", "drop", "-", "down", "-", "menu", "options", "for", "magic_method_codes", "columns" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/drop_down_menus3.py#L174-L183
train
Add drop - down - menu options for magic_method_codes columns
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
dialogs/drop_down_menus3.py
Menus.on_left_click
def on_left_click(self, event, grid, choices): """ creates popup menu when user clicks on the column if that column is in the list of choices that get a drop-down menu. allows user to edit the column, but only from available values """ row, col = event.GetRow(), event.Get...
python
def on_left_click(self, event, grid, choices): """ creates popup menu when user clicks on the column if that column is in the list of choices that get a drop-down menu. allows user to edit the column, but only from available values """ row, col = event.GetRow(), event.Get...
[ "def", "on_left_click", "(", "self", ",", "event", ",", "grid", ",", "choices", ")", ":", "row", ",", "col", "=", "event", ".", "GetRow", "(", ")", ",", "event", ".", "GetCol", "(", ")", "if", "col", "==", "0", "and", "self", ".", "grid", ".", ...
creates popup menu when user clicks on the column if that column is in the list of choices that get a drop-down menu. allows user to edit the column, but only from available values
[ "creates", "popup", "menu", "when", "user", "clicks", "on", "the", "column", "if", "that", "column", "is", "in", "the", "list", "of", "choices", "that", "get", "a", "drop", "-", "down", "menu", ".", "allows", "user", "to", "edit", "the", "column", "but...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/drop_down_menus3.py#L284-L397
train
Creates a popup menu when user clicks on the column
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/di_tilt.py
main
def main(): """ NAME di_tilt.py DESCRIPTION rotates geographic coordinate dec, inc data to stratigraphic coordinates using the dip and dip direction (strike+90, dip if dip to right of strike) INPUT FORMAT declination inclination dip_direction dip SYNTAX di_til...
python
def main(): """ NAME di_tilt.py DESCRIPTION rotates geographic coordinate dec, inc data to stratigraphic coordinates using the dip and dip direction (strike+90, dip if dip to right of strike) INPUT FORMAT declination inclination dip_direction dip SYNTAX di_til...
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-F'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "("...
NAME di_tilt.py DESCRIPTION rotates geographic coordinate dec, inc data to stratigraphic coordinates using the dip and dip direction (strike+90, dip if dip to right of strike) INPUT FORMAT declination inclination dip_direction dip SYNTAX di_tilt.py [-h][-i][-f FILE] [...
[ "NAME", "di_tilt", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/di_tilt.py#L9-L65
train
NAME di_tilt. py entry.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/convert2unix.py
main
def main(): """ NAME convert2unix.py DESCRIPTION converts mac or dos formatted file to unix file in place SYNTAX convert2unix.py FILE OPTIONS -h prints help and quits """ if '-h' in sys.argv: print(main.__doc__) sys.exit() ...
python
def main(): """ NAME convert2unix.py DESCRIPTION converts mac or dos formatted file to unix file in place SYNTAX convert2unix.py FILE OPTIONS -h prints help and quits """ if '-h' in sys.argv: print(main.__doc__) sys.exit() ...
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "file", "=", "sys", ".", "argv", "[", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", "...
NAME convert2unix.py DESCRIPTION converts mac or dos formatted file to unix file in place SYNTAX convert2unix.py FILE OPTIONS -h prints help and quits
[ "NAME", "convert2unix", ".", "py", "DESCRIPTION", "converts", "mac", "or", "dos", "formatted", "file", "to", "unix", "file", "in", "place", "SYNTAX", "convert2unix", ".", "py", "FILE", "OPTIONS", "-", "h", "prints", "help", "and", "quits" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/convert2unix.py#L5-L30
train
main entry point for the convert2unix. py script
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/igrf.py
main
def main(): """ NAME igrf.py DESCRIPTION This program calculates igrf field values using the routine of Malin and Barraclough (1981) based on d/igrfs from 1900 to 2010. between 1900 and 1000BCE, it uses CALS3K.4, ARCH3K.1 Prior to 1000BCE, it uses PFM9k or CALS10k-4b Cal...
python
def main(): """ NAME igrf.py DESCRIPTION This program calculates igrf field values using the routine of Malin and Barraclough (1981) based on d/igrfs from 1900 to 2010. between 1900 and 1000BCE, it uses CALS3K.4, ARCH3K.1 Prior to 1000BCE, it uses PFM9k or CALS10k-4b Cal...
[ "def", "main", "(", ")", ":", "plot", ",", "fmt", "=", "0", ",", "'svg'", "mod", ",", "alt", ",", "make_plot", ",", "lat", ",", "lon", "=", "'cals10k'", ",", "0", ",", "0", ",", "0", ",", "0", "if", "'-loc'", "in", "sys", ".", "argv", ":", ...
NAME igrf.py DESCRIPTION This program calculates igrf field values using the routine of Malin and Barraclough (1981) based on d/igrfs from 1900 to 2010. between 1900 and 1000BCE, it uses CALS3K.4, ARCH3K.1 Prior to 1000BCE, it uses PFM9k or CALS10k-4b Calculates reference field ...
[ "NAME", "igrf", ".", "py", "DESCRIPTION", "This", "program", "calculates", "igrf", "field", "values", "using", "the", "routine", "of", "Malin", "and", "Barraclough", "(", "1981", ")", "based", "on", "d", "/", "igrfs", "from", "1900", "to", "2010", ".", "...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/igrf.py#L15-L190
train
This function is used to generate the igrf field vector for the given file entry. It uses the routine of Malin and Barraclough and CALS10k - 4bce.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/vgpmap_magic2.py
main
def main(): """ NAME vgpmap_magic.py DESCRIPTION makes a map of vgps and a95/dp,dm for site means in a pmag_results table SYNTAX vgpmap_magic.py [command line options] OPTIONS -h prints help and quits -eye ELAT ELON [specify eyeball location], default is 9...
python
def main(): """ NAME vgpmap_magic.py DESCRIPTION makes a map of vgps and a95/dp,dm for site means in a pmag_results table SYNTAX vgpmap_magic.py [command line options] OPTIONS -h prints help and quits -eye ELAT ELON [specify eyeball location], default is 9...
[ "def", "main", "(", ")", ":", "dir_path", "=", "'.'", "res", ",", "ages", "=", "'c'", ",", "0", "plot", "=", "0", "proj", "=", "'ortho'", "results_file", "=", "'pmag_results.txt'", "ell", ",", "flip", "=", "0", ",", "0", "lat_0", ",", "lon_0", "=",...
NAME vgpmap_magic.py DESCRIPTION makes a map of vgps and a95/dp,dm for site means in a pmag_results table SYNTAX vgpmap_magic.py [command line options] OPTIONS -h prints help and quits -eye ELAT ELON [specify eyeball location], default is 90., 0. -f FILE p...
[ "NAME", "vgpmap_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/vgpmap_magic2.py#L13-L251
train
This function is the main function of the vgpmap_magic. py script. It is the main function of the vgpmap_magic. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
programs/gokent.py
main
def main(): """ NAME gokent.py DESCRIPTION calculates Kent parameters from dec inc data INPUT FORMAT takes dec/inc as first two columns in space delimited file SYNTAX gokent.py [options] OPTIONS -h prints help message and quits -i for interactive f...
python
def main(): """ NAME gokent.py DESCRIPTION calculates Kent parameters from dec inc data INPUT FORMAT takes dec/inc as first two columns in space delimited file SYNTAX gokent.py [options] OPTIONS -h prints help message and quits -i for interactive f...
[ "def", "main", "(", ")", ":", "if", "len", "(", "sys", ".", "argv", ")", ">", "0", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "# check if help is needed", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "# graceful q...
NAME gokent.py DESCRIPTION calculates Kent parameters from dec inc data INPUT FORMAT takes dec/inc as first two columns in space delimited file SYNTAX gokent.py [options] OPTIONS -h prints help message and quits -i for interactive filename entry -f...
[ "NAME", "gokent", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/gokent.py#L7-L65
train
NAME gokent. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/pmagplotlib.py
draw_figs
def draw_figs(FIGS): """ Can only be used if matplotlib backend is set to TKAgg Does not play well with wxPython Parameters _________ FIGS : dictionary of figure names as keys and numbers as values """ is_win = True if sys.platform in ['win32', 'win64'] else False if not is_win: ...
python
def draw_figs(FIGS): """ Can only be used if matplotlib backend is set to TKAgg Does not play well with wxPython Parameters _________ FIGS : dictionary of figure names as keys and numbers as values """ is_win = True if sys.platform in ['win32', 'win64'] else False if not is_win: ...
[ "def", "draw_figs", "(", "FIGS", ")", ":", "is_win", "=", "True", "if", "sys", ".", "platform", "in", "[", "'win32'", ",", "'win64'", "]", "else", "False", "if", "not", "is_win", ":", "plt", ".", "ion", "(", ")", "for", "fig", "in", "list", "(", ...
Can only be used if matplotlib backend is set to TKAgg Does not play well with wxPython Parameters _________ FIGS : dictionary of figure names as keys and numbers as values
[ "Can", "only", "be", "used", "if", "matplotlib", "backend", "is", "set", "to", "TKAgg", "Does", "not", "play", "well", "with", "wxPython", "Parameters", "_________", "FIGS", ":", "dictionary", "of", "figure", "names", "as", "keys", "and", "numbers", "as", ...
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/pmagplotlib.py#L63-L83
train
Draw all the figures in the TKAgg
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/pmagplotlib.py
delticks
def delticks(fig): """ deletes half the x-axis tick marks Parameters ___________ fig : matplotlib figure number """ locs = fig.xaxis.get_ticklocs() nlocs = np.delete(locs, list(range(0, len(locs), 2))) fig.set_xticks(nlocs)
python
def delticks(fig): """ deletes half the x-axis tick marks Parameters ___________ fig : matplotlib figure number """ locs = fig.xaxis.get_ticklocs() nlocs = np.delete(locs, list(range(0, len(locs), 2))) fig.set_xticks(nlocs)
[ "def", "delticks", "(", "fig", ")", ":", "locs", "=", "fig", ".", "xaxis", ".", "get_ticklocs", "(", ")", "nlocs", "=", "np", ".", "delete", "(", "locs", ",", "list", "(", "range", "(", "0", ",", "len", "(", "locs", ")", ",", "2", ")", ")", "...
deletes half the x-axis tick marks Parameters ___________ fig : matplotlib figure number
[ "deletes", "half", "the", "x", "-", "axis", "tick", "marks", "Parameters", "___________", "fig", ":", "matplotlib", "figure", "number" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/pmagplotlib.py#L105-L115
train
Delete half the x - axis tick marks in the matplotlib figure.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/pmagplotlib.py
plot_init
def plot_init(fignum, w, h): """ initializes plot number fignum with width w and height h Parameters __________ fignum : matplotlib figure number w : width h : height """ global fig_x_pos, fig_y_pos, plt_num dpi = 80 if isServer: dpi = 240 # plt.ion() plt_num ...
python
def plot_init(fignum, w, h): """ initializes plot number fignum with width w and height h Parameters __________ fignum : matplotlib figure number w : width h : height """ global fig_x_pos, fig_y_pos, plt_num dpi = 80 if isServer: dpi = 240 # plt.ion() plt_num ...
[ "def", "plot_init", "(", "fignum", ",", "w", ",", "h", ")", ":", "global", "fig_x_pos", ",", "fig_y_pos", ",", "plt_num", "dpi", "=", "80", "if", "isServer", ":", "dpi", "=", "240", "# plt.ion()", "plt_num", "+=", "1", "fig", "=", "plt", ".", "figure...
initializes plot number fignum with width w and height h Parameters __________ fignum : matplotlib figure number w : width h : height
[ "initializes", "plot", "number", "fignum", "with", "width", "w", "and", "height", "h", "Parameters", "__________", "fignum", ":", "matplotlib", "figure", "number", "w", ":", "width", "h", ":", "height" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/pmagplotlib.py#L123-L152
train
Initializes the matplotlib figure with the given width w and height h.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...
PmagPy/PmagPy
pmagpy/pmagplotlib.py
plot3d_init
def plot3d_init(fignum): """ initializes 3D plot """ from mpl_toolkits.mplot3d import Axes3D fig = plt.figure(fignum) ax = fig.add_subplot(111, projection='3d') return ax
python
def plot3d_init(fignum): """ initializes 3D plot """ from mpl_toolkits.mplot3d import Axes3D fig = plt.figure(fignum) ax = fig.add_subplot(111, projection='3d') return ax
[ "def", "plot3d_init", "(", "fignum", ")", ":", "from", "mpl_toolkits", ".", "mplot3d", "import", "Axes3D", "fig", "=", "plt", ".", "figure", "(", "fignum", ")", "ax", "=", "fig", ".", "add_subplot", "(", "111", ",", "projection", "=", "'3d'", ")", "ret...
initializes 3D plot
[ "initializes", "3D", "plot" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/pmagplotlib.py#L155-L162
train
Initializes 3D plot
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJU...