Preferences dialog/Turning off Domain acts as self index

< Preferences dialog
Revision as of 16:12, 30 March 2018 by Lchrisman (talk | contribs) (EW18147)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Domain acts as self index preference setting is a legacy setting that exists to provide backward compatibility with models created in Analytica 4.2 or earlier. In the Analytica 4.3 release, the Domain attribute was redesigned so as to eliminate inconsistencies with the original design and to expand the generality and uses of the Domain attribute. There are several features in Analytica that require the preference to be off, and we strongly recommend that you turn this preference off in your own models.

For most models, the preference can be turned off without any impact on the computations. However, that is not true of all models. If your model relies on the domain being the same the self index, then turning it off will alter the computations within your model. To test whether your model falls in the latter category, you can always just turn the preference off and compare results to see if anything changes.

If your model is impacted, you will need to change some of your variable Definitions. To make this easier, Analytica 5.1 has added a helper that will scan your model's Definitions looking for expressions that would be affected by the change, and rewrites them. The helper is able to handle most common cases, but is not guaranteed to be perfect, so you should save a copy of your model before and compare computed results after to be sure.

Using the conversion tool

To launch the automated helper, open the Preferences dialog in Analytica 5.1 or later, uncheck the Domain acts as self index preference and press OK. The following dialog appears

TurnOffDomainAsSelfIndex.png

Press Yes to run the helper. To turn it off without altering your model (for example to just test whether your model relies on the domain being the self index), press No. If you select No and turn it back on, you be back where you started. Cancel will leave the preference back on, but doesn't undo any other preference settings you just made in the dialog.

What gets changed

See Also

Comments


You are not allowed to post comments.