Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyment drops units from arguments #79

Open
scottprahl opened this issue Apr 30, 2019 · 1 comment
Open

pyment drops units from arguments #79

scottprahl opened this issue Apr 30, 2019 · 1 comment

Comments

@scottprahl
Copy link

Is there a way to get pymentto retain parentheticals? Bracketed expressions are also seem to be elided.

For example, pyment produces the following patch

 def shot_noise(I, Idark, bandwidth, M=1, x=0):
-    """
-    Return the noise current associated with shot/poisson noise
-    Args:
-        I     = current         (A)
-        Idark = dark current    (A)
-        M     = APD Gain factor (--)
-        x     = excess noise (0.3 for Si, 0.7 for InGaAs, 1.0 for Ge APDs)
-    Returns:
-        shot_noise       (A)
+    """Return the noise current associated with shot/poisson noise
+
+    :param I: current
+    :param Idark: dark current
+    :param M: APD Gain factor (Default value = 1)
+    :param x: excess noise (Default value = 0)
+    :param bandwidth: 
+    :returns: shot_noise       (A)
+
@dadadel
Copy link
Owner

dadadel commented Nov 19, 2019

Hi @scottprahl
Thanks for reporting. This is a side effect and should be fixed. I'll try to see when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants