<jupyter_start><jupyter_text>Basic Test of the `tshirt` Spectroscopic PipelineThis tutorial describes the basics of how to use the `tshirt` spectroscopic pipeline. This can also be run to test that the code has installed correctly.  Initial Setup First, make sure the environment is loaded within bash, if it is not already set. Then start a python session or Juypyter notebook```conda activate astrocondajupyter notebook```  Import Code and Run Extraction Import the code and set up the example parameters. The example parameter set is available at https://github.com/eas342/tshirt/blob/master/tshirt/parameters/spec_params/example_spec_parameters.yaml This will extract spectra from the images in `../example_data/spec_time_series/`<jupyter_code>from tshirt.pipeline import spec_pipeline
spec = spec_pipeline.spec()
spec.do_extraction(useMultiprocessing=True)
%matplotlib inline<jupyter_output>On 0 of 4<jupyter_text>Plotting Results Now you can plot an example spectrom from the time series.<jupyter_code>spec.plot_one_spec()<jupyter_output><empty_output><jupyter_text>`plot_wavebin_series` will plot the time series for wavelength-binned data<jupyter_code>spec.plot_wavebin_series(savePlot=False)<jupyter_output>/Users/everettschlawin/es_programs/tshirt/tshirt/pipeline/spec_pipeline.py:1407: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
  fig.show()
{'fraction_non_alphanumeric': 0.07044198895027624, 'fraction_numerical': 0.006215469613259668, 'mean_word_length': 6.748663101604278, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, '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': '332965', 'license': 'MIT', 'n_tokens_mistral': 442, 'n_tokens_neox': 423, 'n_words': 140, 'path': 'docs/spec_pipeline/test_spec_pipeline.ipynb', 'repo_name': 'kglidic/tshirt', 'size': '1448'}