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

hdc-algo utils & linspace #49

Merged
merged 6 commits into from
Feb 7, 2024
Merged

hdc-algo utils & linspace #49

merged 6 commits into from
Feb 7, 2024

Conversation

valpesendorfer
Copy link
Member

@valpesendorfer valpesendorfer commented Feb 7, 2024

This PR adds a utils module for simple utility function that shouldn't necessarily go into ops.

Now I've added to_linspace which has functionality copied over from hdc-tools, to map an input array into linear space. This is useful for using the grouped aggregations introduced in 0.3.0

I've also extended the PeriodAccessors which a linspace property, as this is likely one major usecase. In this specific case, the linear array is just the yearly index with 0-index. Still, IMO it's useful to abstract this away so that can be used as direct input.

Edit:

PR also includes:

  • bump and application of new black version
  • bump of github actions
  • bump of S3 credential action from v2 to v4 - default cred timeout is now 1h (should be plenty), and need to verbosely set AWS account ID to masked

@valpesendorfer valpesendorfer merged commit a80f263 into main Feb 7, 2024
12 checks passed
@valpesendorfer valpesendorfer deleted the linspace branch February 7, 2024 10:07
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