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

Unify resource files location #321

Merged
merged 3 commits into from
May 24, 2024

Conversation

jaredthomas68
Copy link
Collaborator

Unify resource file location

There were two locations in HOPP where resource files were being stored: (1) HOPP/resource_files/, (2) HOPP/hopp/simulation/resource_files/. This pull request moves all necessary files from (1) to (2) and removes (1). All references to (1) have been redirected to (2).

Related issue

While an official issue was never made, location (1) was problematic because the data in (1) could not be directly referenced when HOPP was installed on an HPC system and could likely cause problems in other environments. Moving all resource files to (2) enables storing the resource data files inside the installed hopp package and will thus be available for all installation approaches and environments.

Impacted areas of the software

Additional supporting information

Test results, if applicable

Copy link
Collaborator

@dguittet dguittet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! just a small change

@@ -76,7 +76,7 @@ def __init__(self, lat, lon,
# paths
self.path_current = os.path.dirname(os.path.abspath(__file__))
self.path_results = os.path.join(self.path_current)
self.path_rates = os.path.join(self.path_current, '..', 'resource_files', 'utility_rates')
self.path_rates = os.path.join(self.path_current, '../', 'resource_files', 'utility_rates')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra / here

@jaredthomas68 jaredthomas68 merged commit 835c912 into NREL:develop May 24, 2024
4 checks passed
@jaredthomas68 jaredthomas68 deleted the resourcefiles branch May 24, 2024 15:16
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.

None yet

2 participants