From 9f3fdac9209da3b94645b2aa40475ec338bf94f4 Mon Sep 17 00:00:00 2001 From: JanHab <Jan.Habscheid@web.de> Date: Thu, 12 Sep 2024 16:25:23 +0200 Subject: [PATCH] Batches + host docs on gitlab pages --- .gitlab-ci.yml | 30 +++++++++++++++++++ README.md | 5 ++++ .../Visualizations/VisElectrolyticDiode.py | 10 +++---- 3 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..582d16d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +image: python:3.9 # Use a Python Docker image + +stages: # Define stages in the pipeline + - build + - deploy + +# Job to build documentation +build-docs: + stage: build + script: + - pip install git+https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodels + - pip install sphinx + - pip install sphinx-rtd-theme + - pip install myst-parser + - sphinx-build docs/source docs/build # Build the documentation + artifacts: + paths: + - docs/build # Save the build output for later stages + expire_in: 12 month # Optional: Set how long to keep the artifacts (default: 30 days) + +# Job to deploy documentation to GitLab Pages +pages: + stage: deploy + script: + - mv docs/build public # Move the build output to the "public" directory + artifacts: + paths: + - public # Files in the "public" folder will be deployed to GitLab Pages + only: + - main # Only deploy if the changes are in the default branch \ No newline at end of file diff --git a/README.md b/README.md index d1edec1..7e50176 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Reproducibility Repository for Numerical Treatment of a Thermodynamically Consistent Electrolyte Model (B.Sc. Thesis - Jan Habscheid) +[](https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodes/pipelines) +[](https://jan.habscheid.pages.rwth-aachen.de/bsc-electrolytemodes/) +[](https://git.rwth-aachen.de/jan.habscheid/bsc-electrolytemodes/-/tags) +[](https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodes/-/blob/main/LICENSE?ref_type=heads) + ## Thesis This repository contains the code to reproduce the results presented in the bachelor thesis: Numerical Treatment of a Thermodynamically Consistent Electrolyte Model diff --git a/examples/Visualizations/VisElectrolyticDiode.py b/examples/Visualizations/VisElectrolyticDiode.py index 53f43f1..2b1af9f 100644 --- a/examples/Visualizations/VisElectrolyticDiode.py +++ b/examples/Visualizations/VisElectrolyticDiode.py @@ -49,7 +49,7 @@ color_theme_concentration = 'rainbow' # cool, spring, PuBuGn, YlGnBu, GnBu color_theme_solvent = 'spring' color_theme_pressure = 'autumn' -fig, axs = plt.subplots(nrows=3, ncols=5, figsize=(30, 30)) +fig, axs = plt.subplots(nrows=3, ncols=5, figsize=(30, 30), sharex=True, sharey=True) labelsize = 30 titlesize = 25 legend_width = 8 @@ -102,11 +102,9 @@ for bias, (y_A, y_C, y_S, phi, p, x, y) in enumerate(zip(y_A_packed, y_C_packed, axs[bias,4].tick_params(axis='both', labelsize=labelsize) axs[bias,4].set_title(f'$p \in ({int(round(np.min(p),0))},{int(round(np.max(p), 0))})$', fontsize=titlesize) -# axs[0,0].set_title('$\\varphi [-]$', fontsize=labelsize) -# axs[0,1].set_title('$y_A [-]$', fontsize=labelsize) -# axs[0,2].set_title('$y_C [-]$', fontsize=labelsize) -# axs[0,3].set_title('$y_S [-]$', fontsize=labelsize) -# axs[0,4].set_title('$p [-]$', fontsize=labelsize) +for bias in range(5): + axs[2,bias].set_xticks([0, 0.01, 0.02]) + fig.tight_layout() fig.savefig('../Figures/ElectrolyticDiode.svg') fig.show() -- GitLab