Skip to content

Commit

Permalink
update s3 path
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Oct 20, 2023
1 parent 9657649 commit 5f4666c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/pages/3_Encoding_over_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def plot_beta_auto_corr(ds, model, align_tos, paras,
zarr_store = '/root/capsule/data/datajoint_psth_linear_fit_over_timeall_linear_fit_over_time.zarr'
ds_linear_fit_over_time = xr.open_zarr(zarr_store, consolidated=True)
except: # Else, from s3
s3_path = f's3://aind-behavior-data/Han/ephys/export/psth/all_linear_fit_over_time.zarr'
s3_path = f's3://aind-behavior-data/Han/ephys/export/psth/datajoint_psth_combined/all_linear_fit_over_time.zarr'
fs = s3fs.S3FileSystem(anon=False)
zarr_store = s3fs.S3Map(root=s3_path, s3=fs, check=True)
ds_linear_fit_over_time = xr.open_zarr(zarr_store, consolidated=True)
Expand All @@ -326,8 +326,9 @@ def plot_beta_auto_corr(ds, model, align_tos, paras,
chosen_id = stx.tab_bar(data=[
stx.TabBarItemData(id="tab1", title="1. Fitting stats", description=""),
stx.TabBarItemData(id="tab2", title="2. Coding directions", description=""),
],
default="tab1")
stx.TabBarItemData(id="tab3", title="3. Projection on CDs", description=""),
],
default="tab3")

if chosen_id == 'tab1':
st.markdown('#### :red[Linear fitting over time]')
Expand Down Expand Up @@ -424,6 +425,9 @@ def plot_beta_auto_corr(ds, model, align_tos, paras,
paras=selected_paras,
align_tos=selected_align_to,
down_sample_t=down_sample_t)

elif chosen_id == 'tab3':
pass

if if_debug:
p.stop()

0 comments on commit 5f4666c

Please sign in to comment.