Skip to content

Commit

Permalink
Update src/imgtools/modules/datagraph.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
JoshuaSiraj and coderabbitai[bot] authored Dec 17, 2024
1 parent 97e58b7 commit 7cd6c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imgtools/modules/datagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def parser(self, query_string: str) -> pd.DataFrame:
# Change relative paths to absolute paths
for col in final_df.columns:
if col.startswith("folder"):
final_df[col] = final_df[col].apply(lambda x: (self.edge_path.parent.parent / x).as_posix() if isinstance(x, str) else x) # input folder joined with the rel path
final_df[col] = final_df[col].apply(lambda x: (self.edge_path.parent.parent / x).resolve().as_posix() if isinstance(x, str) else x) # input folder joined with the rel path

return final_df

Expand Down

0 comments on commit 7cd6c03

Please sign in to comment.