Skip to content

Commit

Permalink
Feat: Allow access of params inside function prescription
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallOswald committed Feb 25, 2025
1 parent af53b4d commit 534fc5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions photosurfactant/scripts/plot_first_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ def plot_first_order(): # noqa: D103
first_order_parser(parser)
args = parser.parse_args()

root_index = args.root_index
func = eval("lambda x, L: " + args.func)
problem = args.problem

params = Parameters.from_dict(vars(args))
plot_params = PlottingParameters.from_dict(vars(args))

root_index = args.root_index
func = eval("lambda x: " + args.func)
problem = args.problem

# Calculate Fourier series coefficients
if args.mollify:
wavenumbers, func_coeffs = convolution_coeff(
Expand Down

0 comments on commit 534fc5b

Please sign in to comment.