bycycle-tools / bycycle

Cycle-by-cycle analysis of neural oscillations.
https://bycycle-tools.github.io/
Apache License 2.0
82 stars 21 forks source link

[ENH] Access df columns as attributes #123

Closed ryanhammonds closed 2 years ago

ryanhammonds commented 2 years ago

After bycycle is ran, df column arrays may now be accessed as attributes:

bm = Bycycle()
bm.fit(sig, FS, F_RANGE)
bm.time_peak

before:

bm.df_features['time_peak'].values
codecov-commenter commented 2 years ago

Codecov Report

Merging #123 (8b4167a) into main (5bbb755) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
+ Coverage   95.53%   95.55%   +0.01%     
==========================================
  Files          23       23              
  Lines         874      877       +3     
==========================================
+ Hits          835      838       +3     
  Misses         39       39              
Impacted Files Coverage Δ
bycycle/objs/fit.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5bbb755...8b4167a. Read the comment docs.