Skip to content

Commit

Permalink
Tries to fix Pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Nov 20, 2023
1 parent a565587 commit 7a51ba0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import numpy as np

from sklearn import linear_model as regresion
from UQpy.surrogates.polynomial_chaos.physics_informed.Utilities import *
from UQpy.surrogates.polynomial_chaos.physics_informed.Utilities import ortho_grid, derivative_basis
import copy
from UQpy.surrogates.polynomial_chaos.polynomials.baseclass.Polynomials import Polynomials
from UQpy.surrogates.polynomial_chaos.PolynomialChaosExpansion import PolynomialChaosExpansion
from UQpy.surrogates.polynomial_chaos.physics_informed.PdePCE import PdePCE
from UQpy.surrogates.polynomial_chaos.physics_informed.PdeData import PdeData
from beartype import beartype
Expand Down Expand Up @@ -82,7 +83,7 @@ def lar(self, n_PI: int = 50, virtual_niters: bool = False, max_niter: int = Non
virtual_samples = ortho_grid(n_PI, pce.inputs_number, -1.0, 1.0)
else:
virtual_x = self.pde_pce.virt_func(n_PI)
virtual_samples = polynomial_chaos.Polynomials.standardize_sample(virtual_x, pce.polynomial_basis.distributions)
virtual_samples = Polynomials.standardize_sample(virtual_x, pce.polynomial_basis.distributions)

if max_niter is None:
max_niter = self.pde_data.nconst + 200
Expand Down

0 comments on commit 7a51ba0

Please sign in to comment.