Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Conversation

@jdroenner
Copy link
Contributor

No description provided.

Copy link
Member

@ChristianBeilschmidt ChristianBeilschmidt left a comment

Choose a reason for hiding this comment

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

It looks somewhat fine, although a very hacky solution.
The system ignores the previously set channel.

How does the system handle channel = 0?


Log::debug(concat("getDataLoadingInfo: using channels as time"));

auto time_channel = 0;

Choose a reason for hiding this comment

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

What happens if time is too small and channel stays zero?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have added a NoRasterForGivenTimeException

Comment on lines 225 to 227
auto channel_time_strings = datasetJson.get("channel_start_time_list", Json::Value(Json::ValueType::arrayValue));
for (auto &time_string : channel_time_strings) {
auto channel_time = timeParser->parse(time_string.asString());

Choose a reason for hiding this comment

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

Suggested change
auto channel_time_strings = datasetJson.get("channel_start_time_list", Json::Value(Json::ValueType::arrayValue));
for (auto &time_string : channel_time_strings) {
auto channel_time = timeParser->parse(time_string.asString());
const auto channel_time_strings = datasetJson.get("channel_start_time_list", Json::Value(Json::ValueType::arrayValue));
for (const auto &time_string : channel_time_strings) {
const auto channel_time = timeParser->parse(time_string.asString());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ChristianBeilschmidt ChristianBeilschmidt merged commit ffdef62 into master Jun 24, 2020
@ChristianBeilschmidt ChristianBeilschmidt deleted the handle-channels-as-time branch June 24, 2020 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants