You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we implement an object-oriented system where the kalasiris.Path object is subclassed from
pathlib.Path, so you can say:
importkalasirisasisish=isis.Path('some.img')
h.hi2isis().hical()
printh.name# prints 'some.cub' which is has been run through hical. # Needs some careful thought about how to deal with the actual# filesystem files, which may be swapped around.# inspect with h.qview()
# Also overload operators with isis.algebra, so thatone=isis.Path('one.cub')
two=isis.Path('two.cub')
three=one+two# is the same asisis.algebra(from_=one, from2=two, operator='add', to=?)
# hmm, how to specify three.name, i.e. the to= cube? Default to one.name?
Definitely needs some thinking.
The text was updated successfully, but these errors were encountered:
Could we implement an object-oriented system where the kalasiris.Path object is subclassed from
pathlib.Path, so you can say:
Definitely needs some thinking.
The text was updated successfully, but these errors were encountered: