natcap / invest

InVEST®: models that map and value the goods and services from nature that sustain and fulfill human life.
Apache License 2.0
166 stars 68 forks source link

Rec Model 2.0 #1551

Open davemfish opened 6 months ago

davemfish commented 6 months ago

We have some funds to do some rec model development; see https://github.com/natcap/softwareteam/issues/143

The objective is to integrate an archive of geotagged tweets to supplement the flickr photo dataset we use now.

There will be some updates to the server module to accommodate source data in a series of CSV files, instead of one big CSV.

And there will be client updates to the linear regression model, to use twitter-user-days as well as photo-user-days as the response variable.

davemfish commented 3 months ago

Server infrastructure:

davemfish commented 1 month ago

Is there a race condition in quadtree construction?


08/22/2024 20:13:38  natcap.invest.recreation.recmodel_server INFO     zipping result
08/22/2024 20:13:39  natcap.invest.recreation.recmodel_server ERROR    calculate_userdays exited while multiprocessing.
[Errno 17] File exists: '/home/davemfish/server/flickr/local/a9c0e739-85f0-494d-aa8c-da1bd2edf020/local_qt/3a'
concurrent.futures.process._RemoteTraceback: 
"""
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/davemfish/invest/env/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/home/davemfish/invest/env/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "/home/davemfish/invest/env/lib/python3.11/site-packages/natcap/invest/recreation/buffered_numpy_disk_map.py", line 129, in _write
    os.mkdir(array_directory)
FileExistsError: [Errno 17] File exists: '/home/davemfish/server/flickr/local/a9c0e739-85f0-494d-aa8c-da1bd2edf020/local_qt/3a'
"""