Skip to content

Commit 4004e28

Browse files
more cleanups
1 parent c030a58 commit 4004e28

15 files changed

Lines changed: 12 additions & 71 deletions

pica/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Module: PICA CLI
3+
Purpose: CLI interface for Instrumenet Control modules in PICA (OLD SCRIPTS).
4+
"""
15
import os
26
import sys
37
import subprocess

pica/keithley/k6517b/High_Resistance/IV_K6517B_GUI.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
Purpose: GUI module for IV K6517B GUI v11.
44
"""
55

6-
# -------------------------------------------------------------------------------
7-
# Name: High Resistance IV GUI for Keithley 6517B
8-
# Purpose: Perform a voltage sweep and measure resistance using a
9-
# Keithley 6517B Electrometer with a real instrument backend.
10-
# Author: Prathamesh K. Deshmukh
11-
# Created: 17/09/2025
12-
# Version: V: 4.4 (Performance & UI Update)
13-
# -------------------------------------------------------------------------------
14-
15-
166
# --- Packages for Front end ---
177
import tkinter as tk
188
from tkinter import ttk, Label, Entry, LabelFrame, filedialog, messagebox, scrolledtext, Canvas

pica/keithley/k6517b/High_Resistance/RT_K6517B_L350_T_Sensing_GUI.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33
Purpose: GUI module for RT K6517B L350 T Sensing GUI v14.
44
"""
55

6-
# -------------------------------------------------------------------------------
7-
# Name: Integrated R-T Passive Data
8-
# Purpose: Provide a GUI to passively measure and record Resistance vs.
9-
# Temperature from a Lakeshore 350 and Keithley 6517B.
10-
# This version DOES NOT control the temperature.
11-
# Author: Prathamesh K. Deshmukh
12-
# Created: 26/09/2025
13-
# Version: V: 4.2 (Performance & UI Update)
14-
# -------------------------------------------------------------------------------
15-
16-
176
# --- Packages for Front end ---
187
import tkinter as tk
198
from tkinter import ttk, Label, Entry, LabelFrame, filedialog, messagebox, scrolledtext, Canvas

pica/keithley/k6517b/Pyroelectricity/Instrument_Control/Current_K6517B_Simple_Instrument_Control.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
Purpose: GUI module for Current K6517B Simple Backend v10.
44
"""
55

6-
# -------------------------------------------------------------------------------
7-
# Name: Keithley 6517B electrometer
8-
# Purpose: Current Measurement Backend
9-
# Author: Prathamesh K. Deshmukh
10-
# -------------------------------------------------------------------------------
11-
126
import time
137
import pandas as pd
148
from pymeasure.instruments.keithley import Keithley6517B

pica/keithley/k6517b/Pyroelectricity/Instrument_Control/Poling_K6517B_Instrument_Control.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
Purpose: GUI module for Poling K6517B Backend v10.
44
"""
55

6-
# -------------------------------------------------------------------------------
7-
# Name: Keithley 6517B Poling
8-
# Purpose: Apply a poling voltage to a sample.
9-
# Author: Prathamesh K. Deshmukh
10-
# Created: 03-03-2024
11-
# Updated: 22-11-2025 (Refactored for robustness)
12-
# -------------------------------------------------------------------------------
13-
146
import time
157
from pymeasure.instruments.keithley import Keithley6517B
168

pica/keithley/k6517b/Pyroelectricity/Instrument_Control/Pyroelectric_K6517B_Working_Instrument_Control.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
Purpose: GUI module for Pyroelectric K6517B Working Backend v10.
44
"""
55

6-
# -----------------------------------------------------------------------
7-
# Name: Pyroelectricity measurement
8-
# Purpose: Interface with Lakeshore 350 Temperature Controller and
9-
# Keithley 6517B electrometer for pyroelectric measurements.
10-
# Author: Prathamesh K. Deshmukh
11-
# Created: 03/03/2024
12-
# Updated: 22/11/2025 (Refactored for robustness and structure)
13-
# -----------------------------------------------------------------------
14-
156
import pyvisa
167
import time
178
from pymeasure.instruments.keithley import Keithley6517B

pica/keithley/k6517b/Pyroelectricity/Pyroelectric_K6517B_L350_GUI.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
Purpose: GUI module for Pyroelectric K6517B L350 GUI v4.
44
"""
55

6-
# -------------------------------------------------------------------------------
7-
# Name: Pyroelectric Measurement GUI
8-
# Purpose: Perform a pyroelectric current measurement with enhanced, two-stage
9-
# temperature ramp control.
10-
# Author: Prathamesh K. Deshmukh
11-
# Created: 17/09/2025
12-
# Version: V2.5 (Matplotlib Style Fix)
13-
# -------------------------------------------------------------------------------
14-
156
# --- Packages for Front end ---
167
import tkinter as tk
178
from tkinter import ttk, Label, Entry, filedialog, messagebox, scrolledtext, Canvas

pica/keysight/Instrument_Control/CV_KE4980A_Simple_Instrument_Control.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
Purpose: GUI module for CV KE4980A Simple Backend v10.
44
"""
55

6-
# prg for LCR Keysight E 4980 A
7-
# supplimentry stuff 20-6-23
8-
96
import pyvisa
107
from pymeasure.instruments.agilent import AgilentE4980
118
import time

pica/main.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@
44
PROGRAM: PICA Launcher
55
66
PURPOSE: A graphical dashboard for launching PICA measurement scripts.
7-
7+
88
AUTHOR: Prathamesh K. Deshmukh
99
GUIDED BY: Dr. Sudip Mukherjee
1010
INSTITUTE: UGC-DAE Consortium for Scientific Research, Mumbai Centre
11-
12-
VERSION HISTORY:
13-
17.0 (06/12/2025): Updated launcher version to match project metadata.
14-
13.3 (05/10/2025): Added distinct launchers for Active and Passive R-T modes.
15-
13.2 (05/10/2025): Integrated new K2400/2182 frontend GUIs.
16-
13.1 (04/10/2025): Resolved duplicate script paths and validated Delta Mode scripts.
17-
18-
===============================================================================
11+
=========================================================================
1912
'''
2013
import tkinter as tk
2114
from tkinter import ttk, messagebox, Toplevel, Canvas, scrolledtext, font

tests/test_backends_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Purpose: Structure verification for control scripts.
33
4-
What it does: Analyzes your backend files to determine if they are classes, procedural scripts, or functions, and attempts to run them in a "dry" mode to verify their logic structure.
4+
Task Analyzes your backend files to determine if they are classes, procedural scripts, or functions, and attempts to run them in a "dry" mode to verify their logic structure.
55
"""
66

77
import pytest

0 commit comments

Comments
 (0)