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

loading .ahs files in the api #436

Conversation

idhamari
Copy link
Contributor

@idhamari idhamari commented Jan 4, 2023

Handling issue 433. API currently does not provide a way to load .ahs files.

One can test by modifying example 24 as follows:

    builder1.save("age.ahs");
    HierarchyBuilderRedactionBased<?> ageBuilder = new HierarchyBuilderRedactionBased();
    ageBuilder.load("age.ahs", "age", data.getHandle());
    //data.getDefinition().setAttributeType("age", builder1);

@prasser
Copy link
Collaborator

prasser commented Jan 4, 2023

Not needed. You can use HierarchyBuilder.create(File file) to load ahs files.

@prasser prasser closed this Jan 4, 2023
@idhamari
Copy link
Contributor Author

idhamari commented Jan 5, 2023

I think after using create one still needs to prepare and build which main more coding when dealing with too many attributes. Probably the PR is not the best way to handle this but it saves time as one needs only one line per attribute.

Still, I think it is better to keep this PR close until finding a better way.

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

Successfully merging this pull request may close these issues.

2 participants