-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4b04e9
commit e0aa2c8
Showing
4 changed files
with
61 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Legacy interface to files created with v0.13. | ||
Although the data version v1 was already before v0.13 we only support | ||
that API version. | ||
""" | ||
|
||
from .paths import InternalPaths | ||
|
||
|
||
def update_metadata(paths: InternalPaths, raw: dict) -> dict: | ||
"""Modify the raw metadata to the new format. | ||
Parameters | ||
---------- | ||
paths: | ||
base paths to the EKO | ||
raw: | ||
raw yaml content | ||
Returns | ||
------- | ||
dict | ||
compatible raw yaml content | ||
""" | ||
return raw |
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,26 @@ | ||
"""Legacy interface to files created with v0.14. | ||
Although the data version v2 was never assigned to v0.14 we use it for | ||
exactly that API version. | ||
""" | ||
|
||
from .paths import InternalPaths | ||
|
||
|
||
def update_metadata(paths: InternalPaths, raw: dict) -> dict: | ||
"""Modify the raw metadata to the new format. | ||
Parameters | ||
---------- | ||
paths: | ||
base paths to the EKO | ||
raw: | ||
raw yaml content | ||
Returns | ||
------- | ||
dict | ||
compatible raw yaml content | ||
""" | ||
raw["data_version"] = 2 | ||
return raw |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
""" | ||
|
||
__version__ = "0.0.0" | ||
__data_version__ = 1 | ||
__data_version__ = 3 |