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

Scaling column values using select() #29

Open
rjhargreaves opened this issue Dec 15, 2021 · 0 comments
Open

Scaling column values using select() #29

rjhargreaves opened this issue Dec 15, 2021 · 0 comments

Comments

@rjhargreaves
Copy link

Hi,

With Python 3.8.8 and HAPI v1.2.2.0, I am just reporting a minor bug when trying to scale intensities by a factor using the select() command (same example as given on page 15 of the HAPI manual). See traceback below:

Traceback (most recent call last):
  File "filepath\hapi.py", line 1902, in newRowObject
    par_format = expr[3]
IndexError: tuple index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 28, in <module>
    select('H2O',ParameterNames=('nu',('/','sw',0.99731)))
  File "filepath\hapi.py", line 2211, in select
    selectInto(DestinationTableName,TableName,ParameterNames,Conditions)
  File "filepath\hapi.py", line 2161, in selectInto
    RowObjectNew = newRowObject(ParameterNames,RowObject,VarDictionary,ContextFormat)
  File "filepath\hapi.py", line 1904, in newRowObject
    par_format = getDefaultFormat(type(par_value))
  File "filepath\hapi.py", line 1863, in getDefaultFormat
    raise Exception('Unknown type')
Exception: Unknown type
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

1 participant