-
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.
Added tutorial and clean up docu structure
- Loading branch information
1 parent
9095881
commit 866e413
Showing
15 changed files
with
101 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ hide: toc | |
|
||
# Welcome to the `bam-masterdata` documentation page. | ||
|
||
The `bam-masterdata` is a Python package used to define and handle the data model defined in the BAM Data Store project. The BAM Data Store is the central system for Research Data Management at the Bundesanstalt für Materialforschung und -prüfung (BAM). It is a modified instance of [openBIS](https://openbis.ch/). | ||
The `bam-masterdata` is a Python package designed to define and handle the Masterdata used in the BAM Data Store project. The BAM Data Store is the central system for Research Data Management at the Bundesanstalt für Materialforschung und -prüfung (BAM). It is a customized instance of [openBIS](https://openbis.ch/). | ||
<!-- This documentation page is divided according to the [diataxis method](https://www.diataxis.fr/). --> | ||
|
||
|
||
|
@@ -14,17 +14,15 @@ The `bam-masterdata` is a Python package used to define and handle the data mode | |
|
||
<h3>Tutorials</h3> | ||
|
||
The **Tutorials** are designed to guide you through the general and basic understanding of the functionalities. These are intended for learning the software in a first approach. | ||
|
||
- [Creating Masterdata](tutorials/create-masterdata.md) | ||
The **Tutorials** are designed to guide you through the general and basic functionalities of the package. They are ideal for learning the software during your first interaction. | ||
|
||
</div> | ||
|
||
<div markdown="block"> | ||
|
||
<h3>How-to guides</h3> | ||
|
||
The **How-to guides** provide step-by-step instructions for a wide range of tasks. These are oriented for a practical application so you can use them as a fast entry point when searching for specific information. | ||
The **How-to guides** provide step-by-step instructions for a variety of tasks. These serve as a quick reference for practical applications when you need specific information. | ||
|
||
|
||
</div> | ||
|
@@ -33,21 +31,21 @@ The **How-to guides** provide step-by-step instructions for a wide range of task | |
|
||
<h3>Explanations</h3> | ||
|
||
The **Explanations** give you a theoretical background about the main concepts. These are overlapping with BAM Data Store, openBIS and pyBIS concepts, but also some specific BAM Masterdata ones. | ||
The **Explanations** offer theoretical insights into the core concepts. | ||
|
||
</div> | ||
|
||
<div markdown="block"> | ||
|
||
<h3>References</h3> | ||
|
||
The **References** include the glossary of used terms and API documentation. | ||
The **References** include a glossary of terms and the automatically generated API documentation. | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
## Contact | ||
Many parts of this documentation are currently under construction. If you have further questions that are not yet answered here, please contact [[email protected]](mailto:[email protected]). | ||
This documentation is a work in progress. If you have questions that are not yet addressed, please contact [[email protected]](mailto:[email protected]). | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,75 @@ | ||
## Installation setup | ||
|
||
You can install the package in two methods: | ||
|
||
- using `pip` as an additional package to your project, | ||
- as a developer, cloning and installing the repository locally | ||
|
||
### Installing with `pip` | ||
|
||
We recommend you to create first a virtual environment, either with [`conda`](https://anaconda.org/anaconda/conda) or with [`venv`](https://docs.python.org/3/library/venv.html). Note that `bam-masterdata` can be installed with any Python version between 3.9 and 3.12. | ||
|
||
**Conda** | ||
|
||
Run: | ||
```sh | ||
conda create --name .venv pip python=3.12 | ||
conda activate .venv | ||
``` | ||
|
||
**Venv** | ||
|
||
Run: | ||
```sh | ||
python3.12 -m venv .venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
After creating and activating your environment, make sure you have `pip` upgraded, and install the package: | ||
```sh | ||
pip install --upgrade pip | ||
pip install bam-masterdata | ||
``` | ||
|
||
### Development | ||
|
||
In order to develop the package, first you have to clone the repository: | ||
```sh | ||
git clone https://git.bam.de/bam-data-store/bam-masterdata.git | ||
cd bam-masterdata | ||
``` | ||
|
||
Same as before, create a virtual environment (in this example, we use `venv`) and activate it: | ||
|
||
```sh | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
Run the following script: | ||
|
||
```sh | ||
./scripts/install_python_dependencies.sh | ||
``` | ||
|
||
??? info "Installation script" | ||
The script contains a set of steps which ensure to install the package with all optional dependencies. If you prefer to install manually, we recommend you to take a look into the script and install only the desired dependencies. | ||
|
||
Its content is: | ||
```sh | ||
#!/bin/bash | ||
|
||
# Fail immediately if any command exits with a non-zero status | ||
set -e | ||
|
||
echo "Making sure pip is up to date..." | ||
pip install --upgrade pip | ||
|
||
echo "Installing uv..." | ||
pip install uv | ||
|
||
echo "Installing main project dependencies..." | ||
uv pip install -e '.[dev,docu]' | ||
|
||
echo "All dependencies installed successfully." | ||
``` |
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
866e413
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report