 So what happens, I'm pretty sure I tried it already, but we pop this into the shit. We have the application that displays the IG recognizing the whole spectrum, blah, blah, blah. Here's some sample. So we have the app. Another question. So yes, up by mudplotlib we already have it. Okay, it's doing more than we have. Small, comprehensive. Interestingly, we have FS. Yeah, that can be 250. Insert at cursor. Can insert at cursor. That's nice and simple. Okay, this can be 250. Can just create files. Yes, signal is not defined. We can just do co-pilot. Fix this. Let me just fix this. It's really weird. It's not doing it right. It's importing signal from scipy. So it seemed to be getting the context from the folder structure, which is good. Function is generate URL. Generate a JavaScript. Looks like the provide code is incomplete. Which code is incomplete? That was a template from somewhere else. Now this has a lot of issues. Why? It's not defined. Power function is empty list. Process data, power, the whole spectrum. Same thing for signal. It's probably an easier way of doing it. We need to add a phone line. Is it this model I already have? Spectrogram. I also need the signal. Did it actually work? Looks like not sure why it's in a different... Allah. With this run. Bash terminal. Not sure about this one. Especially forcing. Forcing reinstall. Why do I need to force reinstall? Because if all the rest is working. How do I do this? Importing signal. Do I have to upgrade? I don't think there's an issue with sci-fi installation. We are importing sci-fi. So do I import it from sci-fi signal or just sci-fi? And this is odd. Do I also need to do that? Okay, now it seems to respond better. Do I have a camera string? What? Why am I... What? A column? A door? Could not to float? Don't have camera, do I? Camera. Line 20. Right, we need to load the data. It's got nothing to do with camera. Okay, loading the data. We already have that code in another application. Let's see. Loading the data. Okay, we obviously have it in this application. It's not great. It's super slow. It's still loading. And there's also features with display. But it's loading that it's able to load the data. Okay. So this will be... Now question is if the copilot chat has access to all other files. It should. So if I copy path and just tell it to... Can we load the data in the same way as in... Yes, you can load the data. Is it a text? But it's not how we load the data in that file. So I'm not sure if it has all the content from... Sorry, did I make a mistake in the folder? No, I didn't. It's the right folder. Do you have access to... No, I don't have access to a lot of files. I can only provide suggestions based on the code you provide. So what's the point of... I thought the whole point of using it is that it already has access to all your files. That's a bit odd. So how do I provide it? They'll call the same. They'll call up.py. Right. So this is the other file. And it would have loaded that... It is a text file that has to be specifically this one. The other question is do I need to copy it again into this folder or not? I don't want to. How do I access this folder? So this file will be in data. Yeah, this one. RelativePathStun over here. This is the relativePath in data file path. It should be in single quotes, isn't it? And loadText. This just works, I don't think so. DataFilePath is a very large file. We load a small portion of it. Oh, are we already doing this? WindowSize is 10 seconds. Yeah, multiply by sampling frequency. That's correct. And then taking... I just want to take one channel. There are 16 channels, but there's a select one channel. Eventually the selected channel will be coming from the web application. But currently, yes, zero should be fine. Let's make it one. ChannelProcessData. Shouldn't this have data as the input? Where's that function being called? I'll stuff it up, wouldn't I? ProcessData. Let's control I. Let's go pilot. It was already doing this. So it's taking the selected channel and window size as well. DataPath. WindowSize, I don't think I need to do this. It's doing something, my CPU is running. I can hear the fans, all the fans, all the 10 fans. Why is it loading for so long? Now it's loading the page again for quite some time. Okay. Do we already need the wsgi file in here? Where should I be getting my error from? Let's see. So it's loading for too long. Then I get an error. Okay, slow down. GPT-4 was much slower, so you could actually watch it generating text. But this one is much quicker, so I have to slow it down. So there are a few issues. The first is through warning message GUI outside the main thread. Subplots function calls in the processData function. To fix this, you can add the following lines. To begin off, I import mudplotlib, we're already importing it. To understand what's the difference between when you import something like something from mudplotlib or import the whole mudplotlib and then use that, whatever. The line should be added before. So this should be going after. The second issue type error that occurs when rendering index HTML template is that it goes by the channel variable not being defined in the app. I had to fix this issue the following line in the beginning of the app to define the channel's variable. So we can comment this out, put this one in. And we don't have the data yet. Because the data is all the way down there. We sure we don't need that code. We need this up top. Maybe even outside the Flask application. Okay. So where's the data shape? Is it still loading forever? Well, because the window of the data is too large. We actually don't want to load the whole file. Why we're loading the whole file? Let's see how we do it over there. Yeah, we're loading only a certain portion of it. Yeah, with white space. True. Skip rows. That's also handy. This is because that file actually has a seizure in it. So by doing this, we're actually skipping to the seizure. The difference is that we want only one channel. So we're selecting one channel. Because we're plotting spectrogram of this channel. So if we plot all the channels in the spectrum, if it's slow already. Yeah, we have to select just one, just work with one channel. So it's essentially should be the same as this. We didn't want to copy the data file again. We got the file correctly. Should we just read the one channel to begin with? I guess we need this line for sure. Instead of just loading the whole file. What's pdpd? Yeah, so we want to do the same thing because it just worked before. So we have pdpd. It's a very large file. So we don't want to read the whole file. This should be okay. Number of points to load. Duration to load. So yeah, I think in this file we're loading 100 seconds. So then we can scroll through it. Right, and I also remember that our sampling frequency is not to 50. It's definitely 400. So that's just what the data set is. Escape rows is not defined. We actually need those. Right, we use it over here. And we will have a Y and X. Access to it, but instead of like here where we're loading all the 16 channels, we just want to load one. And those numbers should be legit. And we want to create a time array. So this will be data. We'll have a time array, df, just df. Right, this should be a data as well. Do we have something with time? A control i is this. How do we use this? The code is part of Flaskware application. The process is in this place, i.e. g, electroencephalography, e.g. Whatever data and the code reads data from a file, loads the base and start time duration, then the process. Because provided it adds a new column to the loaded data column, contains the time values. This is done by defining more k that close that. So we're not using this for now. And let's try this again. Right, this is loading a bit quick. It's still getting an error. Some variables have been missing or something with pandas. I think I know what the problem is, but the error message to that variable is pandas, not numpy array. We cannot use numpy array indexing to access the column data. You can use the following column data frame. So what's the problem? I'm not actually using this at the moment. I can just comment it out. Still loading for some time, not as bad. Is it the same error? And the fact that I'm getting 500 for the HTTP, it is missing a bit in here. The error message is CSV file, something with the file path. That's what I'm doing already, am I? And data file path is obviously a problem with the data file. We need a relative, any more suggestions? No, it should be something like that. And relative path to... Okay, it's easier to copy the file. And fortunately, or fortunately, whatever, yes, this was copied. Yeah, I need an up root index. Do I have it? No. My rendering plot, it should be an index HTML. It's actually a different error to promise that data is loading okay. I thought I made it one. This seems wrong anyway. Copy, let's explain this. Select the code plot signals from a pandas matplotlib. Very bad partners. Actually, it creates line plot. First argument of a function call specifies x-axis. That's not the x-axis. Okay, we do data time. It needs to be rewritten. Yeah, it needs to be just so the second ago. Data time, data channel. Yeah, that looks more like it. Line 52. Select code return BNA. It's not related to... The code part of the function. So which line am I modifying? Can it regenerate? No. I get that, but I meant with the error and to access the first column of the data, but I'm not on node anymore. So why isn't it not getting updated? Select code channel variable that is used to specify the channel to plot subplots unified channel variables and integer plot content signal, the plot signal function to extract the signal data from a specified channel. What's it talking about? There's no... It's like getting to clear the chat or something. Not using getlock. Don't care. You should check the code that is calling getlock and make sure that the key being passed as well. Yeah, we have pandaspd. I must get full like a more specific... Don't care to fix this. Windows has no access. Yeah, we're not having a great time. Code is unreachable. Because the return is there. Of course code is unreachable. For file, let's explain this.