Skip to content

Commit

Permalink
Merge pull request #83 from AllenNeuralDynamics/han_add_docDB_status
Browse files Browse the repository at this point in the history
feat: add doc db status
  • Loading branch information
hanhou authored Aug 22, 2024
2 parents 8f65c70 + d72f50d commit 5cd0ab6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
14 changes: 14 additions & 0 deletions code/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,20 @@ def _get_data_source(rig):

# --- Load data from docDB ---
_df = merge_in_df_docDB(_df)

# add docDB_status column
_df["docDB_status"] = _df.apply(
lambda row: (
"0_not uploaded"
if pd.isnull(row["location"])
else (
"1_uploaded but not processed"
if pd.isnull(row["results_location"])
else "2_uploaded and processed"
)
),
axis=1,
)

st.session_state.df['sessions_bonsai'] = _df # Somehow _df loses the reference to the original dataframe
st.session_state.session_stats_names = [keys for keys in _df.keys()]
Expand Down
9 changes: 6 additions & 3 deletions environment/postInstall
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ if [ ! -d "/.vscode/extensions" ]
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension ms-python.python
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension njpwerner.autodocstring
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension KevinRose.vsc-python-indent
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension sugatoray.vscode-git-extension-pack
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension mhutchie.git-graph

code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension zhuangtongfa.material-theme
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension ms-python.black-formatter
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension eamodio.gitlens
code-server --disable-telemetry --extensions-dir=/.vscode/extensions --install-extension ryanluker.vscode-coverage-gutters

else
echo "code-server not found"
fi
fi

0 comments on commit 5cd0ab6

Please sign in to comment.