- changed status to resolved
Rename get -> calculate?
Some of our functions like get_energy
here aren't "intelligent" functions like in calc.get_potential_energy that decide whether a calculation is required. Rather, they are dumb functions that re-calculate whenever get_...
is called. Would it be more clear to call these calculate_energy
and such?
Comments (7)
-
reporter -
- changed status to open
-
How this will affect the use of Amp?
-
I think that from the users' perspective, it would be good to keep the old
get_energy()
as a dummy method printing that this will be changed and callcalculate_energy()
in order to avoid breaking old scripts. I supposetests/*.py
have to be updated accordingly. -
reporter @akhorshi Thanks for catching all those extras. I think we can leave the ones in tflow as-is for now.
@muammar These are largely internal calls, that a user might access if they are doing something more advanced. The high-level commands (
calc.get_potential_energy
andcalc.get_forces
) are unchanged. Those ones are smarter and only trigger a calculation if one is necessary. It is only thecalc.model.get_energy
commands, which are called bycalc.get_potential_energy
and such, that are changing. So we're unlikely to break (m)any scripts. -
@andrewpeterson thanks for the clarification.
-
reporter - changed status to resolved
- Log in to comment
Fixed in 2c9d3f2.