Read csv with naive data, column filters and datetime/timedelta units#521
Merged
Read csv with naive data, column filters and datetime/timedelta units#521
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…ut a timezone set explicitly Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…source type Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Collaborator
Pull Request Test Coverage Report for Build 3439649207
💛 - Coveralls |
nhoening
requested changes
Nov 6, 2022
Contributor
nhoening
left a comment
There was a problem hiding this comment.
Looks useful. As so often, I want some documentation improvements.
Signed-off-by: F.N. Claessen <felix@seita.nl>
…ata-and-filters # Conflicts: # documentation/changelog.rst # documentation/cli/change_log.rst
Signed-off-by: F.N. Claessen <felix@seita.nl>
…since UNIX epoch) Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
… digit Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
nhoening
requested changes
Nov 10, 2022
Contributor
nhoening
left a comment
There was a problem hiding this comment.
I approve the recent clarifications, but I feel something has gone wrong when merging?
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Contributor
Author
|
Definitely something went range with merging. I believe I now have corrected all mistakes introduced. |
nhoening
approved these changes
Nov 10, 2022
Contributor
nhoening
left a comment
There was a problem hiding this comment.
Great, one possibly missing word and an honest question.
Flix6x
added a commit
that referenced
this pull request
Nov 15, 2022
…nger assume utc, but raise instead (see PR #521) Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x
added a commit
that referenced
this pull request
Nov 15, 2022
…nger assume utc, but raise instead (see PR #521) Signed-off-by: F.N. Claessen <felix@seita.nl>
Merged
Flix6x
added a commit
that referenced
this pull request
Nov 15, 2022
…nger assume utc, but raise instead (since PR #521). Fix tutorial timezone (#535) * fix charging sensor name in tutorial Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix for changed default when reading in timezone naive data: we no longer assume utc, but raise instead (see PR #521) Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x
added a commit
that referenced
this pull request
Apr 12, 2023
…context of a building with PV (#534) Expand toy tutorial and chart functionality (incl. a more sensible use of the color encoding and data source attribute in charts), by: - Expanding the toy tutorial with creation of solar sensor and solar forecasts from CSV - Expanding the toy tutorial with a new schedule that takes into account solar - Allowing nesting of sensors in the `sensors_to_show` attribute, to denote that multiple sensors should be shown together, and dealing with all of its implications (axis labels, use of colors, etc.) - Visually distinguishing forecasts, schedules and measurements by source type rather than by belief horizon (incl. a simple db migration) - Adding a CLI command to create a new DataSource (so that forecasts are visually presented as originating from a forecaster) * fix charging sensor name in tutorial Signed-off-by: F.N. Claessen <felix@seita.nl> * update price sensor name in tutorial (prefer non-capitalized sensor names) Signed-off-by: F.N. Claessen <felix@seita.nl> * Print out account ID if toy account already exists Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix for changed default when reading in timezone naive data: we no longer assume utc, but raise instead (see PR #521) Signed-off-by: F.N. Claessen <felix@seita.nl> * Add solar power sensor to toy account, and allow existing toy accounts to be updated by simply running `flexmeasures add toy-account` again Signed-off-by: F.N. Claessen <felix@seita.nl> * Support JSON and Callable arguments Signed-off-by: F.N. Claessen <felix@seita.nl> * get or create price sensor Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor to keep original order of sensor ids Signed-off-by: F.N. Claessen <felix@seita.nl> * Add CLI option to pass inflexible device sensors Signed-off-by: F.N. Claessen <felix@seita.nl> * Expand tutorial with scheduling against solar, which limits the available headroom for the battery Signed-off-by: F.N. Claessen <felix@seita.nl> * Add note about resampling Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow nesting sensors_to_show to support layering multiple sensors in a single row within the multi-row asset chart Signed-off-by: F.N. Claessen <felix@seita.nl> * Textual changes Signed-off-by: F.N. Claessen <felix@seita.nl> * Remove print statement Signed-off-by: F.N. Claessen <felix@seita.nl> * Add missing timezone Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix call to make_schedule Signed-off-by: F.N. Claessen <felix@seita.nl> * Ensure storage specs, also when make_schedule is called directly (i.e. no job) Signed-off-by: F.N. Claessen <felix@seita.nl> * Legend shows which asset a sensor belongs to, too, and sensors that share a name don't share a color (note that sensors belonging to the same asset aren't allowed to have the same name) Signed-off-by: F.N. Claessen <felix@seita.nl> * Add CLI command for adding a data source Signed-off-by: F.N. Claessen <felix@seita.nl> * DB migration for source types 'forecaster' and 'scheduler' Signed-off-by: F.N. Claessen <felix@seita.nl> * Attribute toy solar forecasts to a new DataSource of type 'forecaster' Signed-off-by: F.N. Claessen <felix@seita.nl> * Check common cases of shared sensor types Signed-off-by: F.N. Claessen <felix@seita.nl> * Add version identifier and missing parenthesis Signed-off-by: F.N. Claessen <felix@seita.nl> * black and flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix test (no legend in PositionFieldDef) Signed-off-by: F.N. Claessen <felix@seita.nl> * Remove redundant detail encodings Signed-off-by: F.N. Claessen <felix@seita.nl> * Upgrade timely-beliefs for required feature from SeitaBV/timely-beliefs#122 Signed-off-by: F.N. Claessen <felix@seita.nl> * Merge db revisions Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Speed up viz by avoiding redundant client-side transformation Signed-off-by: F.N. Claessen <felix@seita.nl> * Bump vega-lite and vegaembed Signed-off-by: F.N. Claessen <felix@seita.nl> * Ensure full-width bar width Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Update CLI scheduling command by adding `for-storage` Signed-off-by: F.N. Claessen <felix@seita.nl> * Improve introduction to using `flexmeasures add source` Signed-off-by: F.N. Claessen <felix@seita.nl> * Introduce follow-up solar example Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: rename "scheduling script" to "scheduler" and "forecasting script" to "forecaster" Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify event start domain setting Signed-off-by: F.N. Claessen <felix@seita.nl> * Raise instead of warn in case toy account already exists Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify loop over kwargs Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Merge steps Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify when we choose not to show the sensor name Signed-off-by: F.N. Claessen <felix@seita.nl> * Add return type annotations Signed-off-by: F.N. Claessen <felix@seita.nl> * Add default sensors_to_show attribute to test asset Signed-off-by: F.N. Claessen <felix@seita.nl> * Add test cases for bad sensors_to_show attribute Signed-off-by: F.N. Claessen <felix@seita.nl> * Validate sensors_to_show attribute Signed-off-by: F.N. Claessen <felix@seita.nl> * Simplify code lines Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: move util function Signed-off-by: F.N. Claessen <felix@seita.nl> * flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry plus upgrade instructions Signed-off-by: F.N. Claessen <felix@seita.nl> * Add documentation for nested sensors_to_show attribute Signed-off-by: F.N. Claessen <felix@seita.nl> * Resolve import error Signed-off-by: F.N. Claessen <felix@seita.nl> * redundant space Signed-off-by: F.N. Claessen <felix@seita.nl> * Resolve circular import Signed-off-by: F.N. Claessen <felix@seita.nl> * add a missing output style Signed-off-by: Nicolas Höning <nicolas@seita.nl> * Fix GH Issue #604 Signed-off-by: F.N. Claessen <felix@seita.nl> * Correct spacing of header markings Signed-off-by: F.N. Claessen <felix@seita.nl> * Add sensors_to_show attribute to tutorial printout Signed-off-by: F.N. Claessen <felix@seita.nl> * Correct sensor name in tutorial Signed-off-by: F.N. Claessen <felix@seita.nl> * Correct column name in tutorial Signed-off-by: F.N. Claessen <felix@seita.nl> * Shift sensor ids in tutorial Signed-off-by: F.N. Claessen <felix@seita.nl> * fix capitalization Signed-off-by: F.N. Claessen <felix@seita.nl> * Update uniplot output (looks like later versions have a more intuitive choice of y-axis ticks) Signed-off-by: F.N. Claessen <felix@seita.nl> * Correct data source IDs Signed-off-by: F.N. Claessen <felix@seita.nl> * test Signed-off-by: F.N. Claessen <felix@seita.nl> * Revert "test" This reverts commit b393cad. * Resolve circular import coming to light through mypy Signed-off-by: F.N. Claessen <felix@seita.nl> * Generalize util function Signed-off-by: F.N. Claessen <felix@seita.nl> * Add documentation for new CLI command Signed-off-by: F.N. Claessen <felix@seita.nl> * Add documentation for new CLI option Signed-off-by: F.N. Claessen <felix@seita.nl> --------- Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: Nicolas Höning <nicolas@seita.nl> Co-authored-by: Nicolas Höning <nicolas@seita.nl>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #507, and introduces additional CSV import features.