Skip to content
Snippets Groups Projects
Commit 5bdcf93e authored by Manuel Marschall's avatar Manuel Marschall
Browse files

removed __init__ to fix directory structure

parent c1ae539a
Branches
No related tags found
No related merge requests found
Pipeline #3763 passed
...@@ -16,11 +16,10 @@ mypy: ...@@ -16,11 +16,10 @@ mypy:
script: script:
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
- cd code
- apt-get update -qq && apt-get install -y -qq pandoc - apt-get update -qq && apt-get install -y -qq pandoc
- python3 -m pip install --upgrade mypy - python3 -m pip install --upgrade mypy
- python3 -m pip install types-mock - python3 -m pip install types-mock
- python -m mypy . - python -m mypy code/
flake8: flake8:
stage: Static Analysis stage: Static Analysis
...@@ -28,10 +27,9 @@ flake8: ...@@ -28,10 +27,9 @@ flake8:
script: script:
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
- cd code
- apt-get update -qq && apt-get install -y -qq pandoc - apt-get update -qq && apt-get install -y -qq pandoc
- python3 -m pip install --upgrade flake8 - python3 -m pip install --upgrade flake8
- flake8 --max-line-length=120 *.py - flake8 --max-line-length=120 code/*.py
pylint: pylint:
stage: Static Analysis stage: Static Analysis
......
"""
# # License
# copyright Manuel Marschall (PTB) 2021
# This software is licensed under the BSD-like license:
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the distribution.
# DISCLAIMER
# ----------
# This software was developed at Physikalisch-Technische Bundesanstalt
# (PTB). The software is made available "as is" free of cost. PTB assumes
# no responsibility whatsoever for its use by other parties, and makes no
# guarantees, expressed or implied, about its quality, reliability, safety,
# suitability or any other characteristic. In no event will PTB be liable
# for any direct, indirect or consequential damage arising in connection
"""
...@@ -24,10 +24,9 @@ ...@@ -24,10 +24,9 @@
# for any direct, indirect or consequential damage arising in connection # for any direct, indirect or consequential damage arising in connection
""" """
import os import os
from code.utility import (gum_s1_reference, gum_reference, from utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference)
gum_rejection, mcmc_reference) from plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs)
from code.plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs) from models import independent_model
from code.models import independent_model
# `measurement model` and partial inverse `forward model` # `measurement model` and partial inverse `forward model`
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
import os import os
import json import json
import numpy as np import numpy as np
from code.utility import (gum_s1_reference, gum_reference, gum_rejection) from utility import (gum_s1_reference, gum_reference, gum_rejection)
from code.plot_utility import (plot_x, plot_result_pdfs) from plot_utility import (plot_x, plot_result_pdfs)
from code.models import independent_model from models import independent_model
def get_options(nu0: int, # pylint: disable=invalid-name def get_options(nu0: int, # pylint: disable=invalid-name
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
""" """
import os import os
import numpy as np import numpy as np
from code.utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference) from utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference)
from code.plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs) from plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs)
from code.models import independent_model from models import independent_model
def get_options(exp: int = 1) -> dict: def get_options(exp: int = 1) -> dict:
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
""" """
import os import os
import numpy as np import numpy as np
from code.utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference) from utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference)
from code.plot_utility import plot_x, plot_mcmc_chains, plot_result_pdfs from plot_utility import plot_x, plot_mcmc_chains, plot_result_pdfs
from code.models import independent_model from models import independent_model
def get_options() -> dict: def get_options() -> dict:
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
""" """
import os import os
import numpy as np import numpy as np
from code.utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference) from utility import (gum_s1_reference, gum_reference, gum_rejection, mcmc_reference)
from code.plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs) from plot_utility import (plot_x, plot_mcmc_chains, plot_result_pdfs)
from code.models import independent_model from models import independent_model
def measurement_model(RS: float, # pylint: disable=invalid-name def measurement_model(RS: float, # pylint: disable=invalid-name
......
...@@ -27,7 +27,7 @@ from typing import Any, Union, Optional ...@@ -27,7 +27,7 @@ from typing import Any, Union, Optional
import matplotlib.pyplot as plt # type: ignore import matplotlib.pyplot as plt # type: ignore
import numpy as np import numpy as np
from scipy.stats import norm # type: ignore from scipy.stats import norm # type: ignore
from code.utility import get_pdf_range, get_hist_data, get_pdf_range_minmax from utility import get_pdf_range, get_hist_data, get_pdf_range_minmax
def plot_x(xbar: float, def plot_x(xbar: float,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment