-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed series ids to be an equivalent of the ODM composite id. Fixed…
… small sorting issue with the resources list.
- Loading branch information
1 parent
7378ff6
commit b809f57
Showing
6 changed files
with
49 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from Utilities.H2OServices import H2OService | ||
|
||
service = H2OService() | ||
service.LoadData() | ||
|
||
print('- Starting operation') | ||
for resource_id, managed_resource in service.ManagedResources.iteritems(): | ||
print('- Working with resource {}'.format(resource_id)) | ||
selected_series = managed_resource.selected_series | ||
managed_resource.selected_series = {} | ||
for old_series_id, series in selected_series.iteritems(): | ||
print('-- Changing series id {} for new series id {}'.format(old_series_id, series.odm_id)) | ||
managed_resource.selected_series[series.odm_id] = series | ||
series.SeriesID = series.odm_id | ||
|
||
print('- Writing new operations file with new series ids') | ||
service.SaveData() | ||
print('DONE!') |