SURGroup / UQpy

UQpy (Uncertainty Quantification with python) is a general purpose Python toolbox for modeling uncertainty in physical and mathematical systems.
MIT License
267 stars 75 forks source link

NumPy is imported twice in FORM example #194

Open connor-krill opened 1 year ago

connor-krill commented 1 year ago

Describe the bug In the Auxiliary File for the FORM.py example, numpy is imported once at the beginning of the script and a second time inside of a function.

To Reproduce See the auxiliary file for the FORM.py example. Link: https://uqpyproject.readthedocs.io/en/latest/auto_examples/reliability/form/pfn.html#sphx-glr-auto-examples-reliability-form-pfn-py

Expected behavior The package should only be imported at the beginning of the file. It does not need to be imported a second time inside a function definition.

Desktop (please complete the following information): UQpy version 4.0.5