Skip to content

Commit

Permalink
Add intro slides and update authors
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Nov 19, 2023
1 parent 89b706f commit d2ebe42
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Created by https://www.toptal.com/developers/gitignore/api/python
# Edit at https://www.toptal.com/developers/gitignore?templates=python
docs/documentation.html
docs/*.html
_build
### Python ###
# Byte-compiled / optimized / DLL files
Expand Down
46 changes: 1 addition & 45 deletions docs/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,4 @@ marp: true
# Distribution
Best Practices in Modern Software Development: 23.11.23

Henrik Finsberg and Jørgen Dokken

---

## Agenda

- How to package a python project
- Uploading a package to pypi
- Creating a GitHub action to publish a package on pypi whenever you make a new release
- Uploading conda package to conda-forge
- Creating and publishing docker images
- Creating a GitHub action to publish a new docker image to the GitHub registry whenever you make a new release
- Licensing
- Which license to put on your code and why you should use a permissive license

---

## Creating a package

- A set of modules can be collected in a package

- A package is organized as module files in a directory tree

- Each subdirectory must have a __init__.py file (can be empty)

```
examples/my-package
├── LICENSE
├── pyproject.toml
├── README.md
├── src
│ └── pkg
│ ├── analysis.py
│ ├── __init__.py
│ └── printing
│ ├── __init__.py
│ └── printing.py
└── test
├── test_analysis.py
└── test_printing.py
```

---

## Installing a package
To be included in a future version
2 changes: 1 addition & 1 deletion docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: default
paginate: true
header: 'Best Practices in Modern Software Development: Documentation'
footer: '23.11.23 - Henrik Finsberg and Jørgen Dokken'
footer: '23.11.23 - Jørgen Dokken'
size: 16:9
style: |
.small-text {
Expand Down
2 changes: 1 addition & 1 deletion docs/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: default
paginate: true
header: 'Best Practices in Modern Software Development: Reproducible environments'
footer: '23.11.23 - Henrik Finsberg and Jørgen Dokken'
footer: '23.11.23 - Benjamin Ragan-Kelly'
size: 16:9
style: |
.small-text {
Expand Down
2 changes: 1 addition & 1 deletion docs/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: default
paginate: true
header: 'Best Practices in Modern Software Development: Paper with code'
footer: '23.11.23 - Henrik Finsberg and Jørgen Dokken'
footer: '23.11.23 - Henrik Finsberg'
size: 16:9
style: |
.small-text {
Expand Down
2 changes: 1 addition & 1 deletion docs/repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: default
paginate: true
header: 'Best Practices in Modern Software Development: Code and Data repositories'
footer: '23.11.23 - Henrik Finsberg and Jørgen Dokken'
footer: '23.11.23 - Henrik Finsberg'
size: 16:9
style: |
.small-text {
Expand Down
48 changes: 48 additions & 0 deletions intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
theme: default
paginate: true
header: 'Best Practices in Modern Software Development'
footer: '23.11.23 - Henrik Finsberg'
size: 16:9
style: |
.small-text {
font-size: 0.55rem;
}
html: true
marp: true
---

# Elevating Scientific Computing at Simula: Best Practices in Modern Software Development.

23.11.23

Henrik Finsberg, Jørgen Dokken and Benjamin Ragan-Kelly

---

## Research at Simula is based on code

* We write code to **pre-process** data
* We write code to **run simulations**
* We write code to create figures and tables (**post-processing**)

* Whenever you publish a paper, you need to have recipe for how to reproduce the results in the paper

---

## Goal of this workshops

- 11.15 - 11.45: Code and data repositories (Henrik)
- 11.45 - 12.15: Reproducible environments (Min)
- 12.15 - 12.45: Lunch
- 12.45 - 13.15: Linters, formatters and continuous integration (Henrik + Jørgen)
- 13.15 - 13.45: Documentation (Jørgen)
- 13.45 - 14.00: Break
- 14.00 - 14.30: A paper with code (Henrik)

---

## Material from the workshop

- https://github.com/scientificcomputing/seminar-23-11-2023
- https://scientificcomputing.github.io/seminar-23-11-2023/README.html

0 comments on commit d2ebe42

Please sign in to comment.