Skip to content

Commit

Permalink
revert CSV reading
Browse files Browse the repository at this point in the history
  • Loading branch information
julbinb committed Jan 3, 2024
1 parent 0d0657c commit 58b35ae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/types-analysis/pkg-process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,13 @@ analyzePkgTypeAnns(pkgPath :: AbstractString) :: Dict = begin
return failedResult
end
try
#df = CSV.read(typeAnnsPath, DataFrame; escapechar='\\')
df = CSV.read(typeAnnsPath, DataFrame; escapechar='\\', delim=';',
header=[:TypeAnnotation])
## reading type anns extracted from source code
df = CSV.read(typeAnnsPath, DataFrame; escapechar='\\')
## reading type anns recorded dynamically
#df = CSV.read(typeAnnsPath, DataFrame; escapechar='\\', delim=';',
# header=[:TypeAnnotation])
# TODO: either make statically exctracted CSVs use ';' or make
# a better switch between static and dynamic info
df = addTypeAnnsAnalysis!(df)
dfSumm = summarizeAnalysis(df, ANALYSIS_COLS_ANNS)
CSV.write(
Expand Down

0 comments on commit 58b35ae

Please sign in to comment.