Skip to content

Commit 71a732e

Browse files
made gpib ctype optional
1 parent 4b5af43 commit 71a732e

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ PICA is structured as a standard Python package.
163163
pip install .
164164
```
165165

166+
*Note: The base installation of PICA does not include `gpib-ctypes`, which is only required for specific GPIB hardware on Linux systems (e.g., linux-gpib). If you need this functionality, install it separately:*
167+
```bash
168+
pip install .[gpib]
169+
```
170+
166171
*Note: Ensure you have the NI-VISA drivers installed on your host machine to allow `PyVISA` to communicate with the hardware.*
167172

168173
## Running the Software

docs/User_Manual.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ python -m venv venv
9999

100100
# Install Python dependencies
101101
pip install -r requirements.txt
102+
103+
# The base installation does not include gpib-ctypes, which is only required for
104+
# specific GPIB hardware on Linux systems (e.g., linux-gpib).
105+
# If you need this functionality, install it separately:
106+
pip install .[gpib]
102107
```
103108

104109
### 3.3 Execution

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ dependencies = [ # Pinned to match requirements.txt for stability
2525
"PyVISA>=1.12.0",
2626
"PyMeasure>=0.10.0",
2727
"pyvisa-py>=0.5.3",
28-
"gpib-ctypes>=0.3.0",
2928
"scipy",
3029
"Pillow>=10.3.0"
3130
]
3231

32+
[project.optional-dependencies]
33+
gpib = ["gpib-ctypes>=0.3.0"]
34+
3335
[project.urls]
3436
"Homepage" = "https://github.com/prathameshnium/PICA-Python-Instrument-Control-and-Automation"
3537
"Bug Tracker" = "https://github.com/prathameshnium/PICA-Python-Instrument-Control-and-Automation/issues"

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ matplotlib>=3.5.2
44
pymeasure>=0.10.0
55
pyvisa>=1.12.0
66
pyvisa-py>=0.5.3
7-
gpib-ctypes>=0.3.0
87
pillow>=10.3.0
98
scipy

0 commit comments

Comments
 (0)