
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
PMOIRED
is a Python3 module which allows to model astronomical spectro-interferometric data stored in the OIFITS format (Duvert et al. 2017). Parametric modeling is used to describe the observed scene as blocks such as disks, rings and Gaussians which can be combined and their parameters linked. It includes plotting, least-square fitting and bootstrapping estimation of uncertainties. For spectroscopic instruments (such as GRAVITY), tools are provided to model spectral lines and correct spectra for telluric lines.
The modelling of data is based on several principles:
The principles are close to tools such as LITpro. However, PMOIRED
offers additional features:
PMOIRED
is regularly pushed to PyPI at https://pypi.org/project/pmoired/ so you can install directly using pip
, by typing:
pip3 install pmoired
The Github version is the most up-to-date. To install from the github repository directly:
pip3 install git+https://github.com/amerand/PMOIRED
you can also clone the repository and install with pip:
git clone https://github.com/amerand/PMOIRED
cd PMOIRED
pip3 install .
python3 -m venv _pmoired
source _pmoired/bin/activate
pip3 install git+https://github.com/amerand/PMOIRED jupyterlab
jupyter-lab _pmoired/lib/python*/site-packages/pmoired/Model\ definitions\ and\ examples.ipynb
deactivate
To uninstall (works for both PyPI and github versions):
pip3 uninstall pmoired
This repository comes with a Jupyter Notebook showing basic model syntax.
Full examples, how to load real data and analyse them, are available in a separate repository: PMOIRED_examples. These examples are Jupyter Notebooks reproducing published results with other tools, and serve both as tutorials and verification of PMOIRED
. They cover most of the features of PMOIRED
, from the basics to more advanced operations.
PMOIRED
References to PMOIRED
should point to the 2022 SPIE Telescopes+Instrumentation conference proceeding paper.
This code is a research project in continuous development and not yet properly fully documented. If you want to get the best analysis for your data, do not hesitate to contact me: I try to be responsive, in particular with junior scientists. New features are driven by collaborations: if you think PMOIRED
is missing something, definitely contact me!
I maintain a list of works published using PMOIRED
in a curated bibliography.
I used to to request co-authorship on publications using PMOIRED (until Feb 2023): this is no longer the case, unless I contributed directly to the work in question
PMOIRED uses the multiprocessing
library to parallelise some computations (e.g. bootstrapping, grid search). This library has some issues if you run a script containing such computation is an interactive shell (using %run
or run
in ipython or Spyder). The provided examples as notebooks do not suffer from this problem. If you want to use PMOIRED in .py
scripts you run in iPython, you should structure your .py
script more or less as follow:
import pmoired
import matplotlib
matplotlib.interactive(True)
__spec__ = None
if __name__=='__main__':
[code]
in iPython, you can now type %run myscript.py
.
The latest version of PMOIRED
has been tested on:
PMOIRED
has received contributions from Akke Corporaal, Evgenia Koumpia and Robert Klement.
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 101004719.
FAQs
Display and fit Optical (spectro-)Interferometric OIFITS data
We found that pmoired demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.