schrodinger.trajectory.validate_trajectory module

A module for ensuring that the s_chorus_trajectory_file row property points to an existing file.

schrodinger.trajectory.validate_trajectory.validate_trajectory_path(traj_path, eid, parent=None)

Make sure that the s_chorus_trajectory_file property for the given entry points to an existing file. If it doesn’t, prompt the user about what to do and update the entry as requested.

Parameters
  • traj_path (str) – The current value of the s_chorus_trajectory_file property

  • eid (str) – The entry id being checked

  • parent (QtWidgets.QWidget) – The parent of the dialog

Returns

True if the project row’s s_chorus_trajectory_file property points to an existing file. False otherwise.

Return type

bool