-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If there's an error during mapping entry creation, the failure is just filtered out. It should be thrown instead.
PowerSystemDataModel/src/main/java/edu/ie3/datamodel/io/source/TimeSeriesMappingSource.java
Lines 43 to 50 in 6b3b06b
| public Map<UUID, UUID> getMapping() throws SourceException { | |
| return getMappingSourceData() | |
| .map(this::createMappingEntry) | |
| .filter(Try::isSuccess) | |
| .map(t -> (Success<MappingEntry, FactoryException>) t) | |
| .map(Success::get) | |
| .collect(Collectors.toMap(MappingEntry::getAsset, MappingEntry::getTimeSeries)); | |
| } |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working