Open keckler opened 3 months ago
This check does not account for the fact that the snapshot DB might be in a different directory, in which case there wouldn't be any issue and the warning is misguided.
Doesn't it?
In this line:
The os.path.basename()
gets the file name from the path.
We discussed, and our suggested change goes something like this:
The only thing I'm not sure about is if we can get the "current working directory" safely in call cases in this lambda
function.
There is a settings validator that checks the name of the database being used in a snapshot run: https://github.com/terrapower/armi/blob/f9903fe5a5d30ceda389d6494020f7a0c0f01b92/armi/operators/settingsValidation.py#L450-L459
This check tries to ensure that the snapshot DB and the current run name are not the same, presumably so that the old DB doesn't get overwritten.
This check does not account for the fact that the snapshot DB might be in a different directory, in which case there wouldn't be any issue and the warning is misguided.