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

Get interpolation order from TaperedProfiles when pulling from Lusas #303

Open
peterjamesnugent opened this issue Nov 26, 2020 · 2 comments
Labels
type:feature New capability or enhancement

Comments

@peterjamesnugent
Copy link
Member

peterjamesnugent commented Nov 26, 2020

Description:

Currently cannot query the function used to interpolation sections.

@peterjamesnugent peterjamesnugent added the type:feature New capability or enhancement label Nov 26, 2020
@peterjamesnugent
Copy link
Member Author

Noted as a limitation in the LPI and will be added as a Lusas development request.

I will leave the issue open for when the feature is added.

@peterjamesnugent
Copy link
Member Author

You need to use the getValue function with variable names "interpolationOrder" and "interpolationOrderValue".

Note, the row number is required (2nd parameter in ‘getValue’).

Row 0 is the first row in the dialog (numbered 1 in UI) – the one that says ‘start’
Row 1 is the second row in the dialog (numbered 2 in UI) – the one that says ‘function (n=value)’
database.getAttribute("Line Geometric", "LGeo1").getValue("interpolationOrder", 1) <- this will return ‘function’ in the example
database.getAttribute("Line Geometric", "LGeo1").getValue("interpolationOrderValue", 1) <- this will return the order value from the sub dialog

Returned strings should be:
"Constant"
"Linear"
"Quadratic"
"Cubic" [displayed as “Smoothed” in the dialog]
"Function"

database.getAttribute("Line Geometric", "LGeo1").getValue("interpolationOrder", 0) -> returns "Constant" corresponding to 1st entry
database.getAttribute("Line Geometric", "LGeo1").getValue("interpolationOrder", 1) -> returns "Cubic" corresponding to 2nd entry
database.getAttribute("Line Geometric", "LGeo1").getValue("interpolationOrder", 2) -> returns "Cubic" corresponding to 3rd entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant