Priority of compilation when duplicated functions exist
Tue, 01/15/2019 - 08:24 am
Not sure if this should be a feature request; there may just be a better way I could handle it.
The issue arises when I have the same or slightly different functions with the same name in two procedure file, I cannot compile.
This is an expected behaviour as it confused the compiler, but this turns out to happen often in my case.
For example, I made a procedure file for a particular operation, say momentRecovery.ipf, to make the experiment file more portable. In this operation, I need do apply a rotation to I/Q data (microwave quadratures) so I have a function called rotateIQ in it. Then, sometimes I need to refer to another library of functions stored in another procedure file called Miscellaneous.ipf. The later contains a bunch of functions and it also contains the rotateIQ function in it, as Miscellaneous.ipf is used in other more general experiments.
What I need to do everytime I come across this will be that I disable(comment out) the rotateIQ in either of the two procedures, but then later when I part away from Miscellaneous.ipf, I need to enable it again. This applies to anything else.
Would it be possible to tell Igor to ignore duplicated function (name), or just to prioritize one procedure file over another when duplication exists? I don't think this is a hygiene way, so maybe a better approach exists. Great if you can guide me to that.