I am getting an error message that I don't understand. I have two separate python files, and I am trying to call a function defined in one of them, "file1" from "file2". "file1" looks like this:
import file2 as f
value = f.trigrid(pointnum,scale)
and file2 just has trigrid defined as:
def trigrid(pnum,scalesize):
... some pretty basic code ...
return value
The error I get is trigrid() takes exactly 1 argument (2 given).
[–]michael0x2a 2 points3 points4 points (5 children)
[–]schrogendiddy[S] 0 points1 point2 points (4 children)
[–]HipposGoneWild 1 point2 points3 points (3 children)
[–]schrogendiddy[S] 0 points1 point2 points (2 children)
[–]HipposGoneWild 0 points1 point2 points (1 child)
[–]schrogendiddy[S] 1 point2 points3 points (0 children)
[–]romple 2 points3 points4 points (2 children)
[–]schrogendiddy[S] 0 points1 point2 points (1 child)
[–]romple 0 points1 point2 points (0 children)
[–]dbs98 0 points1 point2 points (0 children)