XY_Job Class¶
The _version.py
file can be executed with execfile to create a local variable __version__:
execfile('_version.py') # python 2.x
exec(open('_version.py').read()) # python 3.x
creates local __version__ variable.
Used to set version info throughout the project.
- class xymath.xy_job.XY_Job(job_name='XYmath Task', file_prefix=None)¶
XY_Job holds all data related to one XYmath task.
This object reads, writes, and administrates XYmath task
- basenameWithExt(fname)¶
returns the file name “fname” with a new extension (if provided)
- define_dataset(xArr, yArr, wtArr=None, xName='', yName='', xUnits='', yUnits='', timeStamp=None)¶
Create DataSet object for XY_Job.
- make_linear_fit(xtranL=None, ytran='y', fit_best_pcent=0, cArr=None, pcent_std=None, std=None)¶
Do a linear sum of terms fit, possibly followed by a refinement(for ytran!=’y’) If cArr is input, simply save the c values and recalc pcent_std and std
- read_job_from_file(fname=None, fileObj=None)¶
Read XY_Job from disk.
- set_file_name(fname)¶
Sets values of file_name and file_prefix
- write_job_to_file(fname=None)¶
Write XY_Job to disk.