Skip to content

Feature/update create#20

Merged
sempervent merged 13 commits into
release/1.2.0from
feature/update-create
Apr 15, 2026
Merged

Feature/update create#20
sempervent merged 13 commits into
release/1.2.0from
feature/update-create

Conversation

@midgemacf
Copy link
Copy Markdown
Contributor

Creating random and collect mixins, factoring the logic out to those.
Updating the create functionality to reflect current practices.

Copy link
Copy Markdown
Contributor

@sempervent sempervent left a comment

Choose a reason for hiding this comment

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

A few comments and then we can merge this in. Also need to add this to the CHANGELOG.md and describe it there.

Comment thread opensampl/create/templates/parser_template.txt Outdated
Comment thread opensampl/create/templates/collect_mixin_template.txt Outdated
Comment thread opensampl/create/templates/collect_mixin_template.txt Outdated
Comment on lines +67 to +73
# TODO: implement time data parsing and call self.send_time_data(df, reference_type)
# or self.send_data(df, metric_type, reference_type)
# df = pd.DataFrame({"time": [...], "value": [...]})
# self.send_time_data(df, reference_type=...)

# Ensure the format it is reading in matches that in save_to_file
raise NotImplementedError
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where does df come from, I don't see it in the signature and it's not fully explained if it is part of self or if it is loaded as a df from the init

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The user has to create it, from the input_file... I thought the line showing df = pd.DataFrame would make that pretty clear. I'll try to reword and add think on a better example...

Comment thread opensampl/create/templates/parser_template.txt Outdated
Comment thread opensampl/mixins/random_data.py Outdated
Comment thread opensampl/vendors/constants.py Outdated
Comment thread myvendor.yaml
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
@sempervent sempervent self-requested a review April 15, 2026 12:59
@sempervent sempervent merged commit 96a4ad0 into release/1.2.0 Apr 15, 2026
@sempervent sempervent deleted the feature/update-create branch April 15, 2026 13:12
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