-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
2,627 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*~ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* Create plant geometry with more leaves | ||
* Add slide on results when comparing different geometries | ||
* Add images of plant geometries to slides | ||
* Push and verify binder works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: CiS2021-hackathon-environment | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- yggdrasil=1.6.3 | ||
- trimesh | ||
- networkx | ||
- pygments | ||
- notebook | ||
- ipykernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
source /opt/conda/etc/profile.d/conda.sh | ||
conda activate CiS2021-hackathon-environment | ||
jupyter notebook --no-browser --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password='' --allow-root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM jupyter/minimal-notebook | ||
|
||
SHELL ["/bin/bash", "--login", "-c"] | ||
|
||
# Create output director | ||
RUN mkdir "output" | ||
|
||
# Create the environment: | ||
COPY environment.yml . | ||
RUN conda env create --file environment.yml | ||
|
||
# Make RUN commands use the new environment: | ||
RUN source /opt/conda/etc/profile.d/conda.sh && \ | ||
conda activate CiS2021-hackathon-environment && \ | ||
yggconfig && \ | ||
ygginfo --verbose && \ | ||
yggcompile c cpp fortran | ||
|
||
RUN echo "source activate CiS2021-hackathon-environment" > ~/.bashrc | ||
|
||
VOLUME /home/${NB_USER}/work | ||
|
||
# Copy the files | ||
WORKDIR /home/${NB_USER}/work | ||
COPY input /home/${NB_USER}/work/input | ||
COPY meshes /home/${NB_USER}/work/meshes | ||
COPY models /home/${NB_USER}/work/models | ||
COPY yamls /home/${NB_USER}/work/yamls | ||
COPY solutions /home/${NB_USER}/work/solutions | ||
COPY *.ipynb /home/${NB_USER}/work | ||
RUN mkdir "/home/${NB_USER}/work/output" | ||
RUN fix-permissions "/home/${NB_USER}/work/output" && fix-permissions "/home/${NB_USER}/work/models" | ||
COPY launch_local.sh . | ||
|
||
# /home/${NB_USER}/work | ||
|
||
|
||
EXPOSE 8888 | ||
ENTRYPOINT ["/bin/bash", "launch_local.sh"] |
Oops, something went wrong.