You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I can see the Git Info Card in the web interface.
However, when I try to query the git commit via the SDK:
repo=Repo(path_to_repo)
tag="success"# Run a basic queryquery=f'"{tag}" in run.tags"runs= [item.runforiteminrepo.query_runs(query, report_mode=0).iter_runs()]
forrunintqdm.tqdm(runs, desc=f"Extracting runs"):
commit=run.__system_params.git_info.commit# more code
then I get the error AttributeError: 'Run' object has no attribute '__system_params'. Again, the same query from the webui works just fine. I debugged through the Run object a little bit, but could not find any meaningful fields / members.
Hey @sbuschjaeger! Thanks for the question.
This behavior is expected, as the dot-based syntax is only available in the context of queries, as part of the query expression.
Instead, the following syntax should be used:
Basically as the title says: How do you get the git commit hash from a run when queried from a repository?
I know that I can store the git commit via
and I can see the Git Info Card in the web interface.
However, when I try to query the git commit via the SDK:
then I get the error
AttributeError: 'Run' object has no attribute '__system_params'
. Again, the same query from the webui works just fine. I debugged through theRun
object a little bit, but could not find any meaningful fields / members.For reference, I am using aim
3.23.0
:The text was updated successfully, but these errors were encountered: