<jupyter_start><jupyter_text>Open Source DIY Hyperspectral Imager Library> Library to calibrate, trigger and capture data cubes for the open source DIY hyperspectral camera.  This work is licensed under a Creative Commons Attribution 3.0 Australia License.Documentation can be found here: [https://openhsi.github.io/openhsi/](https://openhsi.github.io/openhsi/).  Install `pip install openhsi`  Requirements- Python 3.6+- Ximea SDK (See https://www.ximea.com/support/wiki/apis/Python)  How to use  Taking a single picture<jupyter_code>from openhsi.capture import *

try:
    take_show()
except:
    print('No devices found. Camera not connected.')<jupyter_output>No devices found. Camera not connected.<jupyter_text>Changing the Exposure and Gain<jupyter_code>try:
    with OpenHSI(xbinwidth=896,xbinoffset=528,exposure_ms=1000,gain=0) as cam:
        cam.exposure    = 100
        cam.gain        = 5

        img = cam.start().get_img()
        plt.imshow(img)
        plt.xlabel('Wavelength (nm)')
        plt.ylabel('Line pixels')
        plt.show()
except:
    print('No devices found. Camera not connected.')<jupyter_output>No devices found. Camera not connected.<jupyter_text>Calibration<jupyter_code>from openhsi.calibrate import *
result = fit_arc_lines2(arc_file = "cal_files/arc.hdf5", wave_save_file = None, skip = 1, show = True)<jupyter_output>Fit arc lines for each spatial pixel
{'fraction_non_alphanumeric': 0.10114777618364419, 'fraction_numerical': 0.015781922525107604, 'mean_word_length': 4.224719101123595, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '374222', 'license': 'CC-BY-3.0', 'n_tokens_mistral': 481, 'n_tokens_neox': 440, 'n_words': 121, 'path': 'index.ipynb', 'repo_name': 'YiweiMao/openhsi', 'size': '1394'}