semvec/pypi-packages huggingface dataset:
visens 0.1.7
VISualization for Ess Neutron Science

![image.png](https://github.com/nvaytet/visens/raw/master/docs/images/logo.png)

**VIS**ualization for **E**SS **N**eutron **S**cience

### Installation:

```
pip install visens
```

### Usage:

```Python
import visens as vs

# Diffraction experiment
file1 = "V20_ESSIntegration_2018-12-13_0942_stripped.nxs"
# Reflectometry experiment
file2 = "nicos_00000447_agg_with_monitor.nxs"
```

```Python
# Plot a 1D histogram of the integrated detector counts vs time-of-flight
vs.tof(file2)
```
![image.png](https://github.com/nvaytet/visens/raw/master/docs/images/tof.png)
```Python
# Plot a 2D image of the integrated detector counts
vs.image(file2)
```
![image.png](https://github.com/nvaytet/visens/raw/master/docs/images/image.png)
```Python
# Plot a x versus time-of-flight diagram
vs.x_vs_tof(file1)
```
![x_vs_tof.png](https://github.com/nvaytet/visens/raw/master/docs/images/x_vs_tof.png)
```Python
# Open a slicer plot that allows to navigate the tof dimension with mouse wheel
vs.slicer(file2)
```
![slicer.png](https://github.com/nvaytet/visens/raw/master/docs/images/slicer.png)
```Python
# 3D volume rendering (x, y, tof)
# (only available in jupyter notebook, requires ipyvolume)
vs.volume(file1)
```
![volume.png](https://github.com/nvaytet/visens/raw/master/docs/images/volume.png)
magestore-aup 2.2.2
Fix get nearly newest version
Requires Python: >=3

## Original 
This repo has been moved from [auto_upload_site_package](https://gitlab.com/general-oil/infrastructure/tree/master/Tool/auto_upload_site_package)

## Prepare
Config visudo (run sudo without password) on local machine
```bash
sudo visudo
# add this line to end of file
# username is your current username
username  ALL=(ALL) NOPASSWD: ALL
```

## How to use

This package provided function name **deploy**, it will update Magestore pwa pos package to any remote server.  
The **deploy** function has required params:
<ul>
    <li><i>repo_info</i>: (type:dict)
        <ul>
            <li><i>repo_owner</i>: (type:str)</li>
            <li><i>repo_name</i>: (type:str)</li>
            <li><i>tag_name</i>: (type:str)</li>
            <li><i>access_token</i>: (type:str) github personal access token that have permission to acces 6 Magestore product lines</li>
        </ul>
    </li>
    <li><i>instance_info</i>: (type:dict)
        <ul>
            <li><i>ip</i>: (type:str) server ip address</li>
            <li><i>user</i>: (type:str) server username</li>
            <li><i>password</i>: (type:str) server username's password</li>
            <li><i>key_path</i>: (type:str) path to the private key file on local machine (required when no password provided)</li>
            <li><i>source_folder</i>: (type:str)absolute path to magento source</li>
            <li><i>web_container_id</i>: (type:str) web container id (installed by [magento-apache](https://gitlab.com/general-oil/infrastructure/tree/master/Environment/Magento/DemoPortalApache) docker)</li>
        </ul>
    </li>
</ul>