Opened 8 years ago

Last modified 7 years ago

#787 assigned defect

models with the same name in different directories will not be distinguished

Reported by: pkienzle Owned by: butler
Priority: minor Milestone: SasView 4.3.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

The function generate.tag_source returns a unique string associated with the source code for the model. Use this rather than time stamps to determine if the model needs to be recompiled. Remove all the time stamp comparison code since it is complicated and error prone.

Precompiled models that are supplied with the windows installer will need to include the tag, which may complicate the installer. Are precompiled models needed given that SasView ships with tinycc?

OpenCL kernels already use the tag for testing if a recompile is needed. It also check timestamps, so kernelcl.py should also be updated.

In practice, this issue will only be a problem for users that don't have OpenCL but are making their own versions of models with the same name as the builtin model, and still want to run the builtin model. Currently, the most recently changed source will win.

Change History (3)

comment:1 Changed 8 years ago by butler

  • Owner set to butler
  • Status changed from new to assigned

comment:2 Changed 8 years ago by ajj

  • Milestone changed from SasView 4.1.0 to SasView 4.2.0

comment:3 Changed 7 years ago by butler

  • Milestone changed from SasView 4.2.0 to SasView 4.3.0
Note: See TracTickets for help on using tickets.