ODYM icon indicating copy to clipboard operation
ODYM copied to clipboard

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

Open monk840 opened this issue 1 year ago • 3 comments

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

monk840 avatar Mar 27 '24 09:03 monk840

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

stefanpauliuk avatar Mar 27 '24 13:03 stefanpauliuk

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

liweijia001 avatar Aug 22 '24 02:08 liweijia001

@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.

CBreton026 avatar Aug 22 '24 12:08 CBreton026