Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2cc4197
changed test_euclidean_distance_2points so that the comparison is to …
drebbel1z Oct 31, 2025
3a5d58d
changed asserts for some tests to be np asserts for consistency
drebbel1z Nov 6, 2025
f6da0ed
moving setup to more modern pip version
drebbel1z Nov 6, 2025
a3dfdb5
Merge branch 'correcting_tests' into editable_install
drebbel1z Nov 7, 2025
868bf16
removing pkg_resources as it is deprecated
drebbel1z Nov 7, 2025
a344cae
...
drebbel1z Nov 7, 2025
69ca3bc
modifying utilities from np matrix
drebbel1z Nov 7, 2025
0f3f91b
changed more tests to use all_close and also updating some deprecated…
drebbel1z Nov 10, 2025
77faa8c
ruff checks and formatting codebase
drebbel1z Nov 10, 2025
aaaec92
...
drebbel1z Nov 10, 2025
21401a6
converting docstrings to raw to avoid escape sequence errors
drebbel1z Nov 10, 2025
23db099
converting setup.py to be >= for install requires
drebbel1z Nov 10, 2025
9c88065
converting code so that arrays are not assigned to scalars
drebbel1z Nov 10, 2025
33b2ed2
changing default version installed
drebbel1z Nov 14, 2025
39a4297
all tests passing, changed get_nearest_psd in utilities. no issue wit…
drebbel1z Jan 30, 2026
177559c
minor corrections to DREAM to prevent clip cross_prob to 0 1, removin…
drebbel1z Feb 6, 2026
ec2e333
changing tests for dream and refined stratified to examine the statis…
drebbel1z Feb 11, 2026
b62c2cc
increasing nsamples
drebbel1z Feb 11, 2026
23cb3b8
increasing nsamples
drebbel1z Feb 11, 2026
430bc40
Update azure-pipelines.yml: upgrade task versions and add fetchDepth
drebbel1z Apr 3, 2026
b628705
...
drebbel1z Apr 3, 2026
d4c6222
Use gitversion-setup@4 task naming
drebbel1z Apr 3, 2026
96d7af8
Comment out steps requiring service connections for local testing
drebbel1z Apr 3, 2026
0786d56
Restore service connection tasks and use gitversion-setup@4
drebbel1z Apr 3, 2026
e231008
Merge pull request #281 from drebbel1z/feature/azure-pipeline
ponkrshnan May 25, 2026
c0b2acc
modified gitversion for compatibility
ponkrshnan May 25, 2026
cdc1fb5
Change versioning mode to ContinuousDelivery
ponkrshnan May 25, 2026
010dd74
Refactor GitVersion.yml configuration
ponkrshnan May 25, 2026
628e826
changes due to GitVersion 6.x
ponkrshnan May 25, 2026
ec6e13d
Update package versions in requirements.txt
ponkrshnan May 25, 2026
0bc71cc
Update pylint version to be greater than 3.2.0
ponkrshnan May 25, 2026
632cf55
ignore scipy in pylint
ponkrshnan May 25, 2026
969ea7c
add scipy to pylint exception
ponkrshnan May 25, 2026
ba46254
Update .pylintrc configuration for scipy modules
ponkrshnan May 25, 2026
020fe3a
supressing possibly-used-before-assignment in pylint
ponkrshnan May 25, 2026
f98de68
declared variable prep_l_deriv in Utilities.py
ponkrshnan May 25, 2026
1e71b4f
Change tensor dtype to float32 for js_divergence
ponkrshnan May 26, 2026
43971ac
removed setup.py and migrating to pyproject.toml
Aug 21, 2026
1ed2be2
updated tests for numpy 2.5.x
Aug 22, 2026
a6d71ef
Merge pull request #282 from SURGroup/feature/azure_pipeline
ponkrshnan Aug 22, 2026
ffc6482
Change default branch from master to main
dimtsap Aug 24, 2026
b274654
Update azure-pipelines.yml
dimtsap Aug 26, 2026
672947e
Refactor Azure Pipelines YAML configuration
dimtsap Aug 26, 2026
ec4fbe7
docs: Add missing docstrings and improve docs build speed
dimtsap Aug 27, 2026
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
7 changes: 5 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=numpy,scipy
extension-pkg-whitelist=numpy
ignored-modules=scipy,scipy.special

[MESSAGES CONTROL]

Expand All @@ -26,4 +27,6 @@ disable=no-name-in-module
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=scipy
ignored-modules=scipy, scipy.special
ignored-classes=scipy,scipy.special
generated-members=scipy.*
15 changes: 12 additions & 3 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
mode: Mainline
mode: ContinuousDelivery

major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'

commit-message-incrementing: Enabled
branches: {}

branches:
main:
is-mainline: true
regex: ^main$
is-main-branch: true
increment: Patch

ignore:
sha: []
merge-message-formats: {}

merge-message-formats: {}
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ Clone your fork of the UQpy repo from your GitHub account to your local disk (to

git clone https://github.com/SURGroup/UQpy.git
cd UQpy/
python setup.py {version} install (user installation)
python setup.py {version} develop (developer installation)

You will need to replace {version} with the latest version.
pip install . (user installation)
pip install -e . (developer installation)

Referencing UQpy
=================
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.2.1
78 changes: 43 additions & 35 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


variables:
pythonVersion: 3.9
pythonVersion: 3.12
srcDirectory: src

trigger:
- master
- main
- Development
- feature/*
- bugfix/*
Expand All @@ -18,7 +18,7 @@ trigger:
pr:
branches:
include:
- master
- main
- Development

jobs:
Expand All @@ -28,28 +28,31 @@ jobs:
vmImage: "macOS-latest"

steps:
- checkout: self
fetchDepth: 0

- task: UsePythonVersion@0
displayName: "Use Python $(pythonVersion)"
inputs:
versionSpec: "$(pythonVersion)"

- task: gitversion/setup@0
- task: gitversion-setup@4
displayName: Setup GitVersion
inputs:
versionSpec: '5.x'
versionSpec: '6.x'

- task: gitversion/execute@0
- task: gitversion-execute@4
displayName: Calculate GitVersion
inputs:
useConfigFile: true
configFilePath: 'GitVersion.yml'

- powershell: |
echo "Current version: $(GitVersion.SemVer)"
echo "Current version: $env:GITVERSION_SEMVER"
displayName: Shows currently compiling version

- task: SonarCloudPrepare@1
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['System.PullRequest.TargetBranch'], 'master'))
- task: SonarCloudPrepare@3
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['System.PullRequest.TargetBranch'], 'main'))
inputs:
SonarCloud: 'SonarCloud.UQpy'
organization: 'jhusurg'
Expand All @@ -68,7 +71,7 @@ jobs:

- script: |
pip install pylint
pylint --ignored-modules=numpy,scipy,matplotlib,sklearn,torch --disable=E0202,E1136,E1120,E0401,E0213,E1102 --disable=R,C,W src/UQpy
pylint --ignored-modules=numpy,scipy,scipy.*,matplotlib,sklearn,torch --disable=E0202,E1136,E1120,E0401,E0213,E1102,E0606 --disable=R,C,W src/UQpy
displayName: "Running Pylint"

- script: |
Expand All @@ -83,47 +86,49 @@ jobs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
additionalCodeCoverageFiles: '$(System.DefaultWorkingDirectory)/ **'

- task: SonarCloudAnalyze@1
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['System.PullRequest.TargetBranch'], 'master'))
- task: SonarCloudAnalyze@3
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['System.PullRequest.TargetBranch'], 'main'))

- task: SonarCloudPublish@1
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['System.PullRequest.TargetBranch'], 'master'))
- task: SonarCloudPublish@3
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['System.PullRequest.TargetBranch'], 'main'))
inputs:
pollingTimeoutSec: '300'

- script: |
python setup.py $(GitVersion.SemVer) sdist bdist_wheel
pip install build
echo "$(GitVersion.SemVer)" > VERSION
python -m build
displayName: Artifact creation
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')

- task: CopyFiles@2
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
SourceFolder: 'dist'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'

- task: PublishBuildArtifacts@1
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: PublishPipelineArtifact@1
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'dist'
publishLocation: 'Container'

- script: |
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --username "$(TESTPYPIU)" --password "$(TESTPYPIP)"
twine upload --non-interactive dist/*
displayName: Upload to PyPi
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
env:
TWINE_USERNAME: $(TESTPYPIU)
TWINE_PASSWORD: $(TESTPYPIP)

- task: GitHubRelease@1
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
gitHubConnection: 'GitHub_OAuth'
repositoryName: '$(Build.Repository.Name)'
Expand All @@ -139,34 +144,37 @@ jobs:
pool:
vmImage: "ubuntu-latest"
steps:
- task: gitversion/setup@0
- checkout: self
fetchDepth: 0

- task: gitversion-setup@4
displayName: Setup GitVersion
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
versionSpec: '5.x'
versionSpec: '6.x'

- task: gitversion/execute@0
- task: gitversion-execute@4
displayName: Calculate GitVersion
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
useConfigFile: true
configFilePath: 'GitVersion.yml'

- task: Docker@2
displayName: Login to Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'login'

- powershell: |
echo "Current version: $(GitVersion.SemVer)"
displayName: Shows currently compiling version
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')

- task: Docker@2
displayName: Build and push packages to Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'buildAndPush'
Expand All @@ -176,7 +184,7 @@ jobs:

- task: Docker@2
displayName: Logout from Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'logout'
6 changes: 6 additions & 0 deletions docs/code/reliability/sorm/local_model4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""

Auxiliary file
==============================================

"""
import numpy as np


Expand Down
6 changes: 6 additions & 0 deletions docs/code/sampling/tempering/local_reliability_funcs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""

Auxiliary file
==============================================

"""
import numpy as np


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""

Auxiliary file
==============================================

"""
import torch
import numpy as np
from UQpy.stochastic_process import SpectralRepresentation
Expand Down
6 changes: 6 additions & 0 deletions docs/code/surrogates/gpr/local_python_model_1Dfunction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""

Auxiliary file
==============================================

"""
def y_func(z):
import numpy as np
return np.sin(z)
Expand Down
6 changes: 6 additions & 0 deletions docs/code/surrogates/gpr/local_python_model_function.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""

Auxiliary file
==============================================

"""
def y_func(z):
return 1/(6.2727*(abs(0.3-z[:, 0]**2-z[:, 1]**2)+0.01))

4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ From GitHub: Clone your fork of the :py:mod:`UQpy` repo from your GitHub account

git clone https://github.com/SURGroup/UQpy.git
cd UQpy
python setup.py {version} install
pip install .

------------

Expand All @@ -77,7 +77,7 @@ Development

:py:mod:`UQpy` is designed to serve as a platform for developing new UQ methodologies and algorithms. To install :py:mod:`UQpy` as a developer, run::

python setup.py {version} develop
pip install -e .


------------
Expand Down
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "UQpy"
dynamic = ["version"]
description = "UQpy is a general purpose toolbox for Uncertainty Quantification"
readme = "README.rst"
requires-python = ">3.9.0"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Michael D. Shields" },
{ name = "Dimitris G. Giovanis" },
{ name = "Audrey Olivier" },
{ name = "Aakash Bangalore-Satish" },
{ name = "Mohit Chauhan" },
{ name = "Lohit Vandanapu" },
{ name = "Ketson R.M. dos Santos" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
"Natural Language :: English",
]
dependencies = [
"numpy>=2.0.0",
"scipy>=1.13.0",
"matplotlib>=3.9.0",
"scikit-learn>=1.5.0",
"fire>=0.6.0",
"beartype>=0.18.5",
"torch >= 2.2.2",
"torchinfo >= 1.8.0",
]

[project.optional-dependencies]
dev = [
"pytest == 8.2.0",
"pytest-cov == 5.0.0",
"pylint >= 3.2.0",
"pytest-azurepipelines == 1.0.5",
"wheel == 0.43.0",
"twine == 5.0.0",
"sphinx_autodoc_typehints == 1.23.0",
"sphinx_rtd_theme == 1.2.0",
"sphinx_gallery == 0.13.0",
"sphinxcontrib_bibtex == 2.5.0",
"Sphinx==6.1.3",
"hypothesis>=6.0.0",
]

[project.urls]
Homepage = "https://github.com/SURGroup/UQpy"

[tool.setuptools]
platforms = ["OSX", "Windows", "Linux"]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
"*" = ["*.pdf"]

[tool.setuptools.dynamic]
version = { file = "VERSION" }
Loading
Loading