Closed jjb-hub closed 8 months ago
here is my pip list incase we have conflicts from there ? (.venv) (base) DeepPsycExplorer-2:IGOR_phd jasminebutler$ pip list Package Version
appnope 0.1.3 asttokens 2.2.1 backcall 0.2.0 Brotli 1.0.9 certifi 2023.5.7 cffi 1.15.1 charset-normalizer 3.1.0 comm 0.1.3 contourpy 1.0.7 cssselect2 0.7.0 cycler 0.11.0 Cython 0.29.35 debugpy 1.6.7 decorator 5.1.1 et-xmlfile 1.1.0 executing 1.2.0 fonttools 4.39.4 html5lib 1.1 idna 3.4 igor 0.3 importlib-metadata 6.6.0 ipykernel 6.23.1 ipython 8.12.2 jedi 0.18.2 joblib 1.2.0 jupyter_client 8.2.0 jupyter_core 5.3.0 kiwisolver 1.4.4 lazy_loader 0.2 littleutils 0.2.2 matplotlib 3.6.3 matplotlib-inline 0.1.6 nest-asyncio 1.5.6 numpy 1.19.0 openpyxl 3.1.2 outdated 0.2.2 outlier-utils 0.0.3 packaging 23.1 pandas 1.4.4 pandas-flavor 0.5.0 parso 0.8.3 patsy 0.5.3 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.5.0 pingouin 0.5.3 pip 23.1.2 platformdirs 3.5.1 prompt-toolkit 3.0.38 psutil 5.9.5 ptyprocess 0.7.0 pure-eval 0.2.2 pycparser 2.21 pydyf 0.6.0 Pygments 2.15.1 pyparsing 3.0.9 pyphen 0.14.0 python-dateutil 2.8.2 pytz 2023.3 pyzmq 25.1.0 requests 2.31.0 scikit-learn 1.2.2 scipy 1.9.3 seaborn 0.11.2 setuptools 67.8.0 six 1.16.0 sklearn 0.0.post5 stack-data 0.6.2 statannot 0.2.3 statannotations 0.5.0 statsmodels 0.14.0 tabulate 0.9.0 threadpoolctl 3.1.0 tinycss2 1.2.1 tornado 6.3.2 traitlets 5.9.0 typing_extensions 4.6.3 urllib3 2.0.2 wcwidth 0.2.6 weasyprint 59.0 webencodings 0.5.1 wheel 0.40.0 xarray 2022.9.0 zipp 3.15.0 zopfli 0.2.2
@debapratimj this was your old notes - I am cleaning up the requirements txt
Found typo in code: Change cell_ID to cell_id as key under metabuild_functions.py
AttributeError Traceback (most recent call last) /Users/owner/Desktop/random/RUN.ipynb Cell 3 line 1 8 L5a_TLX_df = df.loc[(df['cell_type']=='L5a_TLX')& (df['data_type']=='AP')] 9 L5a_TLX_df ---> 11 expandFeatureDF(L5a_TLX_df) 12 # 13 # #BREAKS ON 14 # FP type file (...) 25 # On entry to DLASCLS parameter number 5 had an illegal value 26 # On entry to DLASCLS parameter number 4 had an illegal value
File ~/Desktop/random/module/metabuild_functions.py:156, in expandFeatureDF(filename_or_df) 153 df=filename_or_df 155 og_columns = df.columns.copy() #origional columns #for ordering columns --> 156 df['mouseline'] = df.cell_ID.str[:3] 157 df = df.apply(_handleFile, axis=1) #Apply a function along an axis (rows = 1) of the DataFrame 159 #ORDERING DF internal: like this new columns added will appear at the end of the df in the order they were created in _handelfile()
File ~/Desktop/random/.venv/lib/python3.8/site-packages/pandas/core/generic.py:5139, in NDFrame.getattr(self, name) 5137 if self._info_axis._can_hold_identifiers_and_holds_name(name): 5138 return self[name] -> 5139 return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'cell_ID'
Issue exists in igor_exporter() function,
Traceback returns np.array of zeros though data exists,
ETA: Friday eve/Sat morning latest
jumped on the branch today and I am still getting the same error:
** On entry to DLASCLS parameter number 4 had an illegal value
I ran this cell in the RUN notebook:
and have several files that have this error:
PN: i see that when i look at the finished df the column 'error' does not have this message in it but it is printed out in the run of getorbuildExpandedDF(), I will look into this now on my branch as there is evidently something wrong with my handling if the error and traceback columns. This includes the following errors:
error message same = ** On entry to DLASCLS parameter number 4 had an illegal value " Issue caused due to extract_FI_x_y function that had an incorrect logic on how the x values (current injection values) would be calculated and it would give us a bunch of zeros. Then np.polyfit would fail to do a linear fit on x,y as all the x values were the same. extract_FI_x_y was corrected so the error no longer appears. Solved on dj_issues26&28 and merged with jasmine branch.
FP (firing property issues) JJB230830/t44 see bellow in function extract_FI_slope_and_rheobased_threshold()
AP (application functions)
18 shows this issue with trace JJB230830/t41 ... but seems to run now
error message same = ** On entry to DLASCLS parameter number 4 had an illegal value