Skip to content

Commit

Permalink
Merge branch 'exp/REC-twitter' of github.com:davemfish/invest into ex…
Browse files Browse the repository at this point in the history
…p/REC-twitter
  • Loading branch information
davemfish committed May 21, 2024
2 parents 4ac2949 + 578059b commit 9310196
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions scripts/recreation_server/copy_quadtree_to_gcs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
#SBATCH --time=2:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=4000M
#SBATCH --mail-type=ALL
#SBATCH --mail-user=davefisher@stanford.edu
#SBATCH --partition=hns,normal
#SBATCH --output=/scratch/users/dfisher5/slurm-logfiles/slurm-%j.%x.out

ml load system rclone
rclone copy --progress \
$SCRATCH/twitter_quadtree/ \
gcs-remote:natcap-recreation/twitter_quadtree/
2 changes: 1 addition & 1 deletion src/natcap/invest/recreation/out_of_core_quadtree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class OutOfCoreQuadTree(object):
return sum([self.nodes[index].n_nodes() for index in xrange(4)]) + 1

def n_points(self):
"""Return the number of nodes in the quadtree"""
"""Return the number of points in the quadtree"""
if self.is_leaf:
return self.n_points_in_node
return sum([self.nodes[index].n_points() for index in xrange(4)])
Expand Down

0 comments on commit 9310196

Please sign in to comment.