yacobylab / oo_special_measure

new object oriented special measure
GNU General Public License v2.0
1 stars 0 forks source link

object oriented scan #6

Open pmaher86 opened 10 years ago

pmaher86 commented 10 years ago

I think that smscan can also be given the OO treatment. Here's a rough idea:

Scan

properties

outerloop data consts

methods

run

Loop

properties

setchans getchans points pointrate innerloop data plots

methods

runloop (this would be recursive, running innerloop, and would return the data for that loop)

Plot

properties

plottype xchan ychan zchan

methods

mikeyshulman commented 10 years ago

agreed! And power users will be able to inherit smscan into other classes and overload scan.run to do weird things. Do you want to try to code up a loose example (the run method will be very long)?

mikeyshulman commented 10 years ago

also, maybe just for consistency, let's call call the "plot" property "disp."