Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Speed up GSPDataSource.get_locations() #305

@JackKelly

Description

@JackKelly

If a constant number of GSPs are available across all timesteps then we don't need to go round a slow for loop. Instead we can just randomly pick GSPs in one go using something like np.random.choice(self.metadata["gsp_id"], size=len(t0_datetimes))

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions