Closed adundovi closed 6 years ago
We should remove it since it is very convenient to import the whole crpropa namespace to have natural writing of physical units (E=10*TeV, ...)
On Monday 11 December 2017 00:49:41 CET Lukas Merten wrote:
We should remove it since it is very convenient to import the whole crpropa namespace to have natural writing of physical units (E=10*TeV, ...)
I agree; occupying common names is somewhat impolite.
-- Dr. Tobias Winchen Physics Department - Astronomy and Astrophysics Research Group Vrije Universiteit Brussel Pleinlaan 2, 1050 Brussels, Belgium
In
Units.h
we have line:The problem with it is that it clashes with python function min() which resides in the global namespace. The consequence of it is that CRPropa should always be imported in a separate namespace (
import crpropa as crp
) since min() is frequently used. I would remove it and leave justminute
. What is your opinion? @TobiasWinchen @lukasmerten