This repository was archived by the owner on Mar 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
hypervector/resources/core Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ def to_response(self):
31
31
def from_get (cls , response ):
32
32
return cls .from_response (response .json ())
33
33
34
+ def refresh (self ):
35
+ benchmark = self .get (self .benchmark_uuid )
36
+ self .__dict__ .update (benchmark .__dict__ )
37
+
34
38
@classmethod
35
39
def list (cls , ensemble ):
36
40
parent_endpoint = f"{ hypervector .API_BASE } /definition/{ ensemble .definition_uuid } " \
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ def to_response(self):
46
46
def from_get (cls , response ):
47
47
return cls .from_response (response .json ())
48
48
49
+ def refresh (self ):
50
+ ensemble = self .get (self .ensemble_uuid )
51
+ self .__dict__ .update (ensemble .__dict__ )
52
+
49
53
@classmethod
50
54
def list (cls , definition ):
51
55
parent_endpoint = f"{ hypervector .API_BASE } /definition/{ definition .definition_uuid } "
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ def to_response(self):
33
33
def from_get (cls , response ):
34
34
return cls .from_response (response .json ())
35
35
36
+ def refresh (self ):
37
+ project = self .get (self .project_uuid )
38
+ self .__dict__ .update (project .__dict__ )
39
+
36
40
@classmethod
37
41
def list (cls ):
38
42
endpoint = f"{ hypervector .API_BASE } /projects"
You can’t perform that action at this time.
0 commit comments