@@ -181,7 +181,7 @@ def get_runs(
181181 output_format : typing .Literal ["dict" , "objects" , "dataframe" ] = "objects" ,
182182 count_limit : pydantic .PositiveInt | None = 100 ,
183183 start_index : pydantic .NonNegativeInt = 0 ,
184- show_shared : bool = False ,
184+ show_shared : bool = True ,
185185 sort_by_columns : list [tuple [str , bool ]] | None = None ,
186186 ) -> DataFrame | typing .Generator [tuple [str , Run ], None , None ] | None :
187187 """Retrieve all runs matching filters.
@@ -210,7 +210,7 @@ def get_runs(
210210 start_index : int, optional
211211 the index from which to count entries. Default is 0.
212212 show_shared : bool, optional
213- whether to include runs shared with the current user. Default is False .
213+ whether to include runs shared with the current user. Default is True .
214214 sort_by_columns : list[tuple[str, bool]], optional
215215 sort by columns in the order given,
216216 list of tuples in the form (column_name: str, sort_descending: bool),
@@ -234,8 +234,9 @@ def get_runs(
234234 RuntimeError
235235 if there was a failure in data retrieval from the server
236236 """
237+ filters = filters or []
237238 if not show_shared :
238- filters = ( filters or []) + ["user == self" ]
239+ filters += ["user == self" ]
239240
240241 _runs = Run .get (
241242 count = count_limit ,
@@ -835,7 +836,8 @@ def get_metric_values(
835836
836837 _args = {"filters" : json .dumps (run_filters )} if run_filters else {}
837838
838- _run_data = dict (Run .get (** _args ))
839+ if not run_ids :
840+ _run_data = dict (Run .get (** _args ))
839841
840842 if not (
841843 _run_metrics := self ._get_run_metrics_from_server (
@@ -853,7 +855,8 @@ def get_metric_values(
853855 )
854856 if use_run_names :
855857 _run_metrics = {
856- _run_data [key ].name : _run_metrics [key ] for key in _run_metrics .keys ()
858+ Run (identifier = key ).name : _run_metrics [key ]
859+ for key in _run_metrics .keys ()
857860 }
858861 return parse_run_set_metrics (
859862 _run_metrics ,
0 commit comments