Just having a bit of trouble with using f2py. I have compiled to following code into a .so file just fine, and it imports into my python code just fine, but I am just wondering how do I then use it. I know there is a command doc but it jus says that this module has no attribute called "doc"
Fortran Code:
subroutine Test
implicit none
real, dimension(3600000) :: Alpha,Sigma
open(10, file='Alpha.txt')
read(10, *) Alpha
Sigma = (87.6*2)/((87.6*(sin(Alpha))**2)+(2*cos(Alpha)**2))
end subroutine
Python Code:
import matplotlib.pyplot as plt
import numpy as np
import Sigma
print(Sigma._doc_)
Error:
File "/home/tom/Desktop/f2py/Plot.py", line 5, in <module>
print(Sigma._doc_)
AttributeError: 'module' object has no attribute '_doc_'
Do I have to somehow enter the doc attribute into the original fortran code? If so how would I go about that?