8.2.21 IsModified

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Test if the active project has been modified since the last saving or loading.

Syntax

IsModified()

Parameters

Return

True if the active project has been modified else False.

Examples

EX1

# For this example to run, create a project, save it, and then modify it
# (for example by modifying the value in a worksheet cell)

import PyOrigin
if(PyOrigin.IsModified()):
    print('Project has been modified')
else:
    print('Project has NOT been modified')
# Now save the project:
PyOrigin.Save('D:\\test.opj')
# Now it must be NOT modifed because we saved it above.
if(PyOrigin.IsModified()):
    print('Project has been modified')
else:
    print('Project has NOT been modified')

See Also

SetModified