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

refactor: replace function definitions with imports from powersimdata #310

Merged
merged 5 commits into from
Jun 30, 2021

Conversation

danielolsen
Copy link
Contributor

@danielolsen danielolsen commented Jun 23, 2021

Pull Request doc

Purpose

This is a companion PR to Breakthrough-Energy/PowerSimData#507. Once code is moved from PostREISE to PowerSimData, within PostREISE we import it from PowerSimData. We do this within the old modules to maintain backward compatibility, although eventually we should probably deprecate and remove these in favor of direct imports.

What the code is doing

No code, besides imports.

Testing

Unit tests fail using the current PowerSimData/develop branch, but pass when checked locally using the branch from Breakthrough-Energy/PowerSimData#507

Time estimate

5 minutes.

@danielolsen danielolsen self-assigned this Jun 23, 2021
@rouille
Copy link
Collaborator

rouille commented Jun 24, 2021

When would we actually plan to change all the import statements throughout PostREISE to import the functions now located in PowerSimData

@danielolsen
Copy link
Contributor Author

When would we actually plan to change all the import statements throughout PostREISE to import the functions now located in PowerSimData

Good question. I don't know if we have any external workflows that depend on PostREISE right now (website maybe?), so I opted for compatibility, but I could change if we want.

@rouille
Copy link
Collaborator

rouille commented Jun 24, 2021

When would we actually plan to change all the import statements throughout PostREISE to import the functions now located in PowerSimData

Good question. I don't know if we have any external workflows that depend on PostREISE right now (website maybe?), so I opted for compatibility, but I could change if we want.

Not sure. I don't think the website relies on the analysis/plotting modules. The question is more about release. I guess we need a new release in PowerSimData. Do we want to have a new release in PostREISE too?

@danielolsen
Copy link
Contributor Author

When would we actually plan to change all the import statements throughout PostREISE to import the functions now located in PowerSimData

Good question. I don't know if we have any external workflows that depend on PostREISE right now (website maybe?), so I opted for compatibility, but I could change if we want.

Not sure. I don't think the website relies on the analysis/plotting modules. The question is more about release. I guess we need a new release in PowerSimData. Do we want to have a new release in PostREISE too?

I guess to be most correct, we should increment the PowerSimData release to 0.4.3 after Breakthrough-Energy/PowerSimData#507 is merged, then create a new release in PostREISE that requires PowerSimData >= 0.4.3? I guess we can roll that into #308.

@danielolsen
Copy link
Contributor Author

There are also a lot of not-time-series-specific functions in postreise.analyze.helpers. Do we want to move these to powersimdata at the same time?

@rouille
Copy link
Collaborator

rouille commented Jun 24, 2021

There are also a lot of not-time-series-specific functions in postreise.analyze.helpers. Do we want to move these to powersimdata at the same time?

It seems that the entire module is grid specific and could be moved in powersimdata/input

@danielolsen danielolsen force-pushed the daniel/import_from_powersimdata branch from 5844fdf to d49269c Compare June 29, 2021 19:10
@danielolsen
Copy link
Contributor Author

danielolsen commented Jun 29, 2021

This has been updated to directly import what used to be postreise.analyze.check and postreise.analyze.helpers from their new locations. Tests pass using the PowerSimData branch from Breakthrough-Energy/PowerSimData#512.

@rouille
Copy link
Collaborator

rouille commented Jun 30, 2021

This has been updated to directly import what used to be postreise.analyze.check and postreise.analyze.helpers from their new locations. Tests pass using the PowerSimData branch from Breakthrough-Energy/PowerSimData#512.

Good question. @jon-hagg?

@jenhagg
Copy link
Collaborator

jenhagg commented Jun 30, 2021

This has been updated to directly import what used to be postreise.analyze.check and postreise.analyze.helpers from their new locations. Tests pass using the PowerSimData branch from Breakthrough-Energy/PowerSimData#512.

Good question. @jon-hagg?

What's the question?

@rouille
Copy link
Collaborator

rouille commented Jun 30, 2021

This has been updated to directly import what used to be postreise.analyze.check and postreise.analyze.helpers from their new locations. Tests pass using the PowerSimData branch from Breakthrough-Energy/PowerSimData#512.

Good question. @jon-hagg?

What's the question?

I guess I posted in the wrong PR. Nevermind

@danielolsen danielolsen merged commit 4ebc723 into develop Jun 30, 2021
@danielolsen danielolsen deleted the daniel/import_from_powersimdata branch June 30, 2021 23:09
@rouille rouille mentioned this pull request Jul 2, 2021
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.

3 participants