Update: I recreated the module. However, I am now running into an error I ran into yesterday. The error is:
ValueError: invalid literal for int() with base 10: ‘...’ Initially, in my exponent_ff_impl.cc file, my code for the dsp in: int exponent_ff_impl::general_work used to be: for(int i = 0; i < noutput_items; i++){ out[i] = pow(in[i], 0.25); } However, when I was still working in my gr-math module (which I am no longer working in), all I had to do to solve the error was change the pow function to powf. Yet in my new module, even when I do this and remake it, the error is still there. Any help would be much appreciated. Thank you, Alex On Wed, Jul 8, 2020 at 1:11 PM Alex Batts <battsale...@gmail.com> wrote: > Okay, I did not realize that could be an issue. Is there a way to rename > the module or should I create another one? > > Thank you, > > Alex > > On Wed, Jul 8, 2020 at 1:08 PM Marcus Müller <muel...@kit.edu> wrote: > >> That's cool, but I'd strongly recommend not calling your module "math", >> because that name clashes with the existing Python "math" module. >> I think that might be happening: something you import imports math, and >> thus the native module, which overrides yours. >> >> Best regards, >> Marcus >> >> On 08/07/2020 19.05, Alex Batts wrote: >> > I created my own “Math” module. This is to distinguish from the built >> in >> > “Math Operators” module. >> > >> > On Wed, Jul 8, 2020 at 12:59 PM Marcus Müller <muel...@kit.edu >> > <mailto:muel...@kit.edu>> wrote: >> > >> > Hi Alex, >> > >> > um, where's that line from? There's no "exponent_ff" in Python's >> > "built-in" math module, so this is not surprising. >> > >> > Best regards, >> > Marcus >> > >> > On 08/07/2020 18.57, Alex Batts wrote: >> > > Hello, >> > > >> > > I tried to create my own OOT module, one that can do exponents on >> > > floats. However, I keep running into this error: >> > > >> > > self.math_exponent_ff_0 = math.exponent_ff() >> > > AttributeError: module ‘math’ has no attribute ‘exponent_ff’ >> > > >> > > I saw an earlier post on the forums that had a couple fixes, but >> > I tried >> > > those and it did not work. Any help would be appreciated. If need >> > be, I >> > > can post files as well to see code. >> > > >> > > Thank you, >> > > >> > > Alex >> > >> >>