semvec/pypi-packages huggingface dataset:
smartmca 0.0.4
Smart MCA for DT5771 Python Library
Requires Python: >=3.5
Keywords: CAEN,MCA,Nuclear Instruments,firmware,fpga

# SmartMCA for Caen DT5771

This library allows to interface user code with the Caen DT5771 MCA Firmware.

With the library it is possible to:
- Connect to the MCA
- Configure high-level MCA/PSD processing parameters
- Start, stop reset 1D and 2D spectra
- Dump waveforms

## Code Example

```Python
from smartmca import SmartMCA
from smartmca import ConfigMCA, ConfigIO


mca = SmartMCA()

mca.connect("http://192.168.102.120", "user", "password")
# or mca.connect("http://localhost", "user", "password") if used on
# integrated jupiterlab

mca.get_server_status()

config = mca.get_mca_configuration()

config.trigger_mode = ConfigMCA.TriggerMode.INTERNAL
config.le_threshold = 5000
config.trigger_type = ConfigMCA.TriggerType.LEADING_EDGE

mca.set_mca_configuration(config)


y= mca.oscilloscope_get_data(enable_trace_processing=False)
plt.plot(y.channels[0].analog)
plt.show()

mca.histogram_start()

time.sleep(5)

stats = mca.get_mca_statistics()
print(stats)

x, counts = mca.histogram_get(rebin=16)
#plot x
plt.plot(x)
plt.show()

```
llmtopic 0.0.3
A library for extracting topics from text documents using llms.
Requires Python: >=3.7

# llmtopic
A library that leverages large language models (llms) for extracting topics from text documents.

## Install
To install for CPU run `pip install llmtopic`.

To install with GPU support run `CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llmtopic`.

If you are under Ubuntu and encounter errors regarding a failed build consider upgrading your cuda version to >=12.1. Also, it could be you have to point to the new nvcc version but modifying the install command as follows: `PATH="/usr/local/cuda-12.3/bin:$PATH" CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llmtopic`. Note that you of course have to adjsut that to your specific CUDA version.