Skip to content

Commit

Permalink
Update theropoda.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiramesquita committed Jun 28, 2024
1 parent 2dd1c56 commit aa18e47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions theropoda.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
from trend_analysis import run as trend_run
from skmap import parallel
import argparse
import pyarrow as pa
import pyarrow.parquet as pq


logger.add("log_do_.log", rotation="500 MB")
Expand Down Expand Up @@ -558,3 +560,8 @@ def run(asset,id_field,output_name,colab_folder):
ttprint(f"Starting trend analysis on {len(args)} polygons")
for id_pol in parallel.job(trend_run, args, joblib_args={'backend': 'multiprocessing'}):
continue

df2conv = pd.read_parquet(output_file_trends)
df2conv.to_parquet(f'{output_name[:-3]}_trend_analysis.parquet')
df2conv= None
os.remove(output_file_trends)

0 comments on commit aa18e47

Please sign in to comment.