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

Clean up loader #424

Merged
merged 5 commits into from
Jan 21, 2025
Merged

Clean up loader #424

merged 5 commits into from
Jan 21, 2025

Conversation

AntoineGautier
Copy link
Collaborator

@AntoineGautier AntoineGautier commented Jan 9, 2025

Description

All loader functions now require a fully qualified Modelica class name, not a file path.
To find the corresponding Modelica JSON file, this class name is converted into a (relative) file path which is looked up for in the directories specified in MODELICA_JSON_PATH.
The function prependToModelicaJsonPath in loader.ts can be used to register additional search paths for Modelica JSON files. It should only be used for testing. In production, the directories where Modelica JSON files are stored are known and do not require to be modified. Hence, there is no use for the previous prefix variable which is removed with this PR.

Related Issue(s)

#423

Testing

All server tests pass and npm run parseTemplateJSON yields a valid templates.json file that can be used by client.

@AntoineGautier AntoineGautier mentioned this pull request Jan 13, 2025
2 tasks
@JayHuLBL JayHuLBL merged commit ab91918 into lbl-srg:staging Jan 21, 2025
1 check passed
JayHuLBL added a commit that referenced this pull request Jan 22, 2025
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