This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Test the ability to free memory from a toast.Cache. | |
This stores the following objects per detector in a Cache: | |
- Detector signal as float64 | |
- Detector flags as uint8 | |
- Detector pointing pixel numbers as int64 | |
- Detector pointing weights as float32 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpi4py import MPI | |
import sys | |
import traceback | |
import time | |
import numpy as np | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demo of buffered MPI distribution of objects by brick | |
# we could move this to desiutil... | |
from desispec.parallel import dist_uniform | |
def load_objects(path, comm=None, buffersize=5000): | |
""" | |
Read objects from a file in a buffered way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
#SBATCH --partition=debug | |
#SBATCH --account=desi | |
#SBATCH --nodes=1 | |
#SBATCH --time=00:30:00 | |
#SBATCH --job-name=bgs-sims | |
#SBATCH --output=bgs-sims_%j.log | |
#SBATCH --export=NONE |