NREL / flasc

A rich floris-driven suite for SCADA analysis
https://nrel.github.io/flasc/
BSD 3-Clause "New" or "Revised" License
31 stars 18 forks source link

[BUG] <smarteole example notebook 06 code cell 8 wd col name> #136

Open bkramak opened 10 months ago

bkramak commented 10 months ago

Is there an existing issue for this?

Current Behavior

in 06 example notebook in folder examples_smarteole, cell 8


AttributeError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_11804\4103650034.py in ?() 1 # Limit the data to this region ----> 2 df_scada = df_scada[(df_scada.wd_smarteole > (start_of_offset - 20)) & 3 (df_scada.wd_smarteole < (end_of_offset + 20))]

c:\ProgramData\miniconda3\envs\flasc_tests\Lib\site-packages\pandas\core\generic.py in ?(self, name) 6200 and name not in self._accessors MicrosoftTeams-image

6201 and self._info_axis._can_hold_identifiers_and_holds_name(name) 6202 ): 6203 return self[name] -> 6204 return object.getattribute(self, name)

AttributeError: 'DataFrame' object has no attribute 'wd_smarteole'

copilot suggests the column name might have been changed to just 'wd' from 'wd_smarteole'

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- pip environment (can be retrieved with `pip list`):

Anything else?

No response

paulf81 commented 10 months ago

hi! I am sorry for this error. I'm actually not sure what is happening here but would like to help debug. The column wd_smarteole should have been added by the 02 notebook. As a first few things to try, would you mind to: 1) Re-run the notebooks in order starting from 00 (or perhaps 02 is also fine) and confirm there are no errors until 06? 2) If that is true, in the cell above the one which gives the error run this code:

for c in df_scada.columns:
    print(c)

And paste the results here? Thank you!