Replies: 2 comments 1 reply
-
Hi @acampove, thanks for reporting this. Unfortunately, we won't be able to help unless we have an MWE that we can reproduce locally. Could you please update your comment with an MWE?
The module contains base classes and protocols shared by all the backends; hence, all of it is in one place. But, if you feel like it can be better, contributions or suggestions are always welcome :) |
Beta Was this translation helpful? Give feedback.
-
Hi @Saransh-cpp This is the MWE import vector
from vector import MomentumObject3D
def _fun(vec : MomentumObject3D) -> None:
print(vec)
vec = vector.obj(pt=1.0, eta=1.0, phi=1.0, mass=10)
v3d = vec.to_Vector3D()
_fun(vec=v3d) save it, run
On another note: regarding contributions, I’m open to freelance opportunities, contract work, or similar collaborations. Let me know if you’d like to discuss, and I can share my hourly rates. Cheers, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In places like this I see:
which I use as in:
And I see:
which tells me that I should be importing
VectorProtocolSpatial
. However, this class is not exposed through the__init__.py
, which I suppose means that you intend this class to be internal. Then the only way we, the users, have to properly use type hinting is to cast the return value of this class asv4d
.Casting is the last thing that we should be doing in code. Is this the intended use or am I missing anything?
BTW that
_methods.py
is almost 4500 lines long, way way bigger than what a module should be. I strongly recommend cleaning that up.Beta Was this translation helpful? Give feedback.
All reactions