Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadParameterXLSX() missing 1 required positional argument: 'ThisParProcMethod' #27

Open
monk840 opened this issue Mar 27, 2024 · 3 comments

Comments

@monk840
Copy link

monk840 commented Mar 27, 2024

Hi
I am learning about ODYM.
When I tried to reproduce the result of example 6, I found that the variable "ThisParProcMethod" was missing when "In 6" called the "ReadParameterXLSX" function in the code.
If possible, could you give me some guidance on how to modify the code?Thank you very much.
截屏2024-03-27 17 46 32
截屏2024-03-27 17 46 46

@stefanpauliuk
Copy link
Member

HI @monk840 , this parameter codes a new interpolation feature that we added last year.

In oder to call the data parser withouth interplotion, please call the ReadParameterXLSX() function with ThisParProcMethod = ['none']:

... = ReadParameterXLSX(..., ThisParProcMethod = ['none'], ...)
or
... = ReadParameterXLSX(..., ThisParProcMethod = 'none', ...)

One of the two should work!

Cheers,
Stefan

@liweijia001
Copy link

Hi
I am experiencing the same problem, and it still reports an error after following your comments and making changes.
Could you give me some guidance on how to modify the code?
Thank you very much.
微信截图_20240822102500
微信截图_20240822102600
微信截图_20240822102655
微信截图_20240822102735

@CBreton026
Copy link

@liweijia001 the SyntaxError is correct; I believe you moved the arguments in your call to ReadParameterXLSX. Specifically, you pass the argument "ThiParProcMethod = 'none'" before passing other positional arguments (e.g. MasterClassification, IndexTable, etc.). We can see it when we compare your function call to line ~36 in the TypeError.

Try moving the keyword argument "ThisParProcMethod" at the end, right before ParseUncertainty = True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants