 So we have this web applications, the i.e. spectrum visualization, it doesn't actually display anything, no errors, I actually don't know why there is no error, debugging is true and nothing is being plotted, windows size is not being taken into account. Okay, so I have this code, let's start a new chat, because this one is getting tangled, supposedly have some NANDs somewhere, number of NANDs in that, aren't we printing it all spectrum, so if I turn all spectrum on, then no NANDs anywhere, one place that I can see a filtered, it's getting confused now, which makes me suspect it lost some context of the code, a filtered data should be filtered data, let's check it again, it still doesn't work, convert to the list, I'm pretty sure we're already doing this, is that processing, I don't think there is any processing on the front end, I don't know what that's talking about, well first we're having this error but also all spectrum is not NAND, yeah I'm converting this to list already, frequencies, time, spectrum, yes front end, so I actually have that line, okay let's start a new chat, so we back to GPT4, just using default, well because the data analysis which used to be the code interpreter is trying to execute on the open AI server, which doesn't suit what we are doing here, so let's start with index HTML, we have those prompts, well that's how we started, so they, well they're doing something but don't get any results yet, just saving that, so it needs the context, HTML and that's okay, let's do the JavaScript next and then the Python code, okay that's enough, it should be the JavaScript, it's mainly for context, we're trying to actually solve specific errors that we're getting, okay that's enough and that's the Python code, let's just let it run, so we're doing this tool here, still have the old version of it, that's how it used to look like, yeah we have the video there of how it meant to work, yes basically just scroll through a file, it shows you the raw eg and that's spectrogram, should be really straightforward, actually kind of like add this, can just save this as an image, like go full screen, just copy that for a sec, just trying to get an image for the interface because we could actually feed it into, so it should look like this and this is what the front end should look like, well that's okay, I know what it does, HTML structure, yes let's do one thing at a time, so we gave it all the code, can align 78, this should be a quick fix, restarting the start, run this, ooh, yes we have all this NANs, everything else is working okay, have to solve the NAN issue first, and this pretty much all of it is NANs, then we're getting this error from the browser, why am I getting NANs, and there indicates that you're filtering processes, producing NANs, not a number variable, let's break down the issue filtering process to use the butter, so that's butter worth filter, pump pass filter can sometimes result in non-values, especially if the data sum has some extreme values, so I probably need to detrain that first, I would say, boundary effects, produce boundary effects, especially when using functions like field-field, which is a forward-backward-field steps, boundary data, replace NANs before sending to just, well that won't help because they're essentially all NANs, so the filter is not working correctly, would not work because we're essentially getting all NANs, doesn't mean the filter is not working correctly, shall we do the trending first before any filtering, yeah this will only mask the problem, yeah let's just get all serious, the trending menu can help, signal has linear trend, it does have a linear trend, and this might affect the filter performance, move the trending process, right so we detrend first, a filter data, detrend on, we want this before any filtering is applied, but it is, yeah the filter should be some very basic thing, subtracting the mean of the signal to remove any DC, but that's what the trending should do to begin with, we'll compare those two later, check filter stability, if the number of poles above one or equal to one, absolute poles, number of roots, yeah essentially we want to check how complicated this filter is or isn't the trending before filtering, pretty sure already placed the trending above code before you apply the filtering, I mean pretty sure it's already easy, let me double check, so this is where field field is line 83, yeah signal to trend is line 59, so that should be fine, isn't the trending process already before the filtering, should be yes, it's checking filter parameters, it's a good idea, so let's see if the filter is unstable, filter for alpha is unstable, so why did you give me an unstable filter shift, that's some basic filtering down sampling, 400 should be fairly low already, I don't know why the numbers go 1, 2, 3 and then 1 again, so regards down sampling, down sampling fairly low, low pass, high pass sequential, that's a good idea, what are we currently using, should have given a default filter order, what is the filter order, it's taken from, yeah that's super large, okay so that filter order was too large, right, so now we're getting something, that was a simple fix, didn't actually have to change anything in the code, we need to obviously limit the filter order, this is actually the actual signal, meant to be the bands and frequency, meant to be frequency, looks like the raw signal, well it looks like the deconstructed signal, so I know what is it doing, sorry it's breaking the signal into frequency, but this is still time domain, this shouldn't be time domain and obviously here we should be able to see something, actually the seizure, so essentially it looks like the seizure broken down, I don't know what's wrong with this trend, whole spectrum, so the whole spectrum it's that gray, it's not actually there, okay first we need to limit the filter order, it's not changing anything, why, okay channel number, okay to seem to it to work, so we need to make sure, why is it the problem, by the way, what is the limit, so it's like something fairly low, what if it's the trend at first, can it then go higher, no, okay what's the first, this chart is called raw signal, so why am I not seeing the raw signal, no it's not only able to take too long to process, it will be, otherwise it will be too sharp and the signal will be distorted and become unstable, or become unstable, which we currently, which we are monitoring for in the code, okay the other thing is that what's called raw, it's meant to be the original channel number, the trend, whole spectrum, frequency scale, filter order, raw signal, this is the ID, new plot, raw signal data, no signal, chart is empty when the page is loaded and and otherwise, yeah there's some good suggestions there, but we'll get to them in a sec when we actually see the, we should be able to display the raw signal, it should be a simple task, data equal data, data is data, am I using the time, no, this short time is not being used, a window size is not taking effect, it's not changing the charts, it's not showing any signal, raw signal, it's the ID, raw signal data, no, raw signal, data, filtered data, copilot is not suggesting anything, add to all, print, first, raw signal to console, cannot do slice, why, I can just use print, right this javascript not python so I can't print, I can only print to console, what, yep, I'm not using slice anymore, refresh the page, control f, it always goes to that launch, filter order, filter data, just sum up quickly, did quite a bit of progress, mainly with jgpt4 was able to generate some working code, github copilot was not able to generate a fully working code, but yes, it could be useful to explain particular bits, it shouldn't really have the context for all the other files, in reality I'm not sure if it does, yeah, troubleshooting in console kind of helps, but primarily we're struggling with the structure of the data, so it's all there, but I think the bot is getting a bit confused regarding how the data is being stored, might start a new chat that probably will help quite a bit, and let's do it quickly, see if it's able to resolve this particular problem, pop in the html javascript and the python code, need to specify what the problem is, don't we, first of all let's fill the alphonse there, but we know how to fix it, we just need to change how to reduce default filter order, actually let's ask what's the filter order, well we can do it, minmax, make it 4, right, so this is 4, so we solve that quickly, single chat is not trying to signal, not thinking, yeah, my alpha band probably going up at the moment, it must be in a non-thinking state,