Created
February 27, 2015 17:22
-
-
Save ehermes/0d98adab801270fd9b30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def isupdateneeded(self, T, V, A): | |
| needed = True | |
| while needed: | |
| if self.qtot is None: | |
| break | |
| if T is not None and T != self.T: | |
| break | |
| if V is not None and V != self.V: | |
| break | |
| if A is not None and A != self.A: | |
| break | |
| if np.any([self.scale[param] != self.scale_old[param] \ | |
| for param in self.scale_params]): | |
| break | |
| needed = False | |
| return needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment