Giter Club home page Giter Club logo

litebirdtask's Introduction

LiteBIRD TOAST Analysis and Simulation Kit

WARNING: THIS PACKAGE IS NOT YET RELEASED OR READY. There will be communication to the mailing lists and updates on the wiki page when it is.

This package provides tools for simulation and analysis of LiteBIRD data within the TOAST framework.

Required Inputs

This repository contains no private information about LiteBIRD. You should visit the official wiki page here and download the required files for use with this package.

Installation

First, make sure that you have a recent (>=3.6) version of Python3. This might come from your operating system, a package manager, or Anaconda. You can check your python version with:

python3 --version

Next create a virtualenv (name it whatever you like):

python3 -m venv ${HOME}/litebird

Now activate this environment:

source ${HOME}/litebird/bin/activate

Within this virtualenv, update pip to the latest version:

python3 -m pip install --upgrade pip

Now you can choose whether to install the latest stable version of the package from PyPI, or to install from a git checkout. To install a stable version, do:

pip install litebirdtask

OR, from your git checkout of litebirdtask, do:

pip install .

If you wish to use other tools in this environment, you can install them now with pip. To "unload" this environment just do:

deactivate

The next time you wish to use the tools, load them again:

source ${HOME}/litebird/bin/activate

You can always completely delete this environment by simply deleting the directory you created. There is extensive documentation on the internet about managing python virtual environments.

Documentation

The full documentation is available on readthedocs.

litebirdtask's People

Contributors

giuspugl avatar tskisner avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

litebirdtask's Issues

Focalplane export not working

Hi ,
am not sure this is the right place for this issue.
when running lbt_export_focalplane , i get this error

Traceback (most recent call last):
  File "/global/cscratch1/sd/giuspugl/toast3_software/bin/lbt_export_focalplane", line 8, in <module>
    sys.exit(main())
  File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/litebirdtask/scripts/export_focalplane.py", line 56, in main
    fp.save_hdf5(args.out)
  File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/instrument.py", line 778, in save_hdf5
    table_write_parallel_hdf5(self.detector_data, handle, "focalplane", comm=comm)
  File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/utils.py", line 736, in table_write_parallel_hdf5
    dset = root.create_dataset(name, dset_shape, dtype=dset_type)
AttributeError: 'str' object has no attribute 'create_dataset'

Think the issue is that in


args.out is a str not an hdf5.Group.

Changing that line into something like :

import h5py 
    f = h5py.File(args.out,'w')
    grp = f.create_group("focalplane")
    fp.save_hdf5(args.out )
    f.close() 

might do the work. Any suggestion ?

Add IMO interface

Now that a demonstration IMO web API exists, we should provide a script that generates a local toml file from the IMO. Then we can use this file directly with our existing tools.

Copy generic satellite workflow and customize

Although we can export a toast focalplane and use that with the existing toast example workflow, as soon as we have some litebird-specific operations in this repo we should make an equivalent "standard" workflow here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.