mirror of
https://github.com/vale981/hopsflow
synced 2025-03-04 16:31:38 -05:00
add a utility to get all snapshots from the path
This commit is contained in:
parent
e9900520c4
commit
40ea31b052
1 changed files with 5 additions and 1 deletions
|
@ -872,13 +872,17 @@ def ensemble_mean_online(
|
|||
return aggregate.ensemble_value
|
||||
|
||||
|
||||
def get_online_values_from_cache(path):
|
||||
def get_all_snaphot_paths(path):
|
||||
path = Path(path)
|
||||
all_versions = list(path.parent.glob(path.stem + "*" + path.suffix))
|
||||
|
||||
final = all_versions[0]
|
||||
all_versions = all_versions[1:] + [final]
|
||||
return all_versions
|
||||
|
||||
|
||||
def get_online_values_from_cache(path):
|
||||
all_versions = get_all_snaphot_paths(path)
|
||||
vals = []
|
||||
|
||||
for path in all_versions:
|
||||
|
|
Loading…
Add table
Reference in a new issue