Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Pull Request

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
lint_code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Analysing the code with pre-commit lint checks
run: |
pre-commit run -a


test_code_and_coverage_report_python3p11:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test code
run: |
mkdir test_report
tox
- name: html to pdf
uses: fifsky/html-to-pdf-action@master
with:
htmlFile: test_report/cov_report/index.html
outputFile: test_report/cov_report/cov_report.pdf
pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: test_report/cov_report/cov_report.pdf
27 changes: 27 additions & 0 deletions .github/workflows/push_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Push to branch

on:
push:
branches:
- '*'

jobs:
test_code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test code
run: |
tox
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ repos:
rev: stable
hooks:
- id: black
args: [--target-version, py311]
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU LESSER GENERAL PUBLIC LICENSE
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ curepy

Retrievall UNcertainties in PYthon

============
Beta Version
============

WARNING: This software is a beta version, results should be used with caution.
Please share any feedback you have after using the tool.

Usage
=====

Expand Down
15 changes: 9 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@
import os
import sys

#sys.path.insert(0, os.path.abspath(".."))
# sys.path.insert(0, os.path.abspath(".."))

# SH added to run apidoc on build
this_directory = os.path.dirname(__file__)

module_path = os.path.abspath(os.path.join(this_directory, "..", "..", "curepy"))


def run_apidoc(_):
ignore_paths = [
"./../../*/tests/",
"setup.py",
"versioneer.py",
]
"./../../*/tests/",
"setup.py",
"versioneer.py",
]

argv = [
"-f",
Expand Down Expand Up @@ -150,7 +151,9 @@ def setup(app):
# theme further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
"announcement": "<strong>Beta Version:</strong> This software is a beta version, results should be used with caution. Please share any feedback you have after using the tool.",
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Welcome to curepy's documentation!
=========================================================

*curepy* is a Python package for propagating uncertainties through inverse problems.
The **curepy** module is a Python software package to propagate uncertainties through inverse problems.

**curepy** can be used to solve inverse problems with input measurements and uncertainties inputted manually, or using an **obsarray** dataset.
It can also be used to analyse the outputs of these inverse problems to quantify uncertainties and compare results.
This documentation provides general information on how to use the module (with some examples), as well as a detailed API of the included classes and function.

.. grid:: 2
:gutter: 2
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ versionfile_source = "curepy/_version.py"
versionfile_build = "curepy/_version.py"
tag_prefix = "v"
parentdir_prefix_version = "curepy-"

[tool.black]
target-version = ['py311']
Loading