Commit 0d97c22c authored by Zhang, Yuanpeng's avatar Zhang, Yuanpeng
Browse files

new se

parent a2260447
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -239,4 +239,15 @@ def main():


if __name__ == "__main__":
    sys.path.insert(0, "/SNS/users/y8z/miniconda/envs/slack/lib/python3.13/site-packages/")
    from slack_sdk import WebClient

    slack_msg = "Diamond run detected and calibration process will start automatically.\n"
    slack_msg += "Once the calibration is done, update message will be posted here.\n"
    slack_msg += "If not seeing the update message in about half an hour, go to the\n"
    slack_msg += "Analysis cluster or any of the instrument machines and run `pg3_cal` manually."
    sltk = "xoxb-970229573620-6616766768435-KI4xnOfT7roQo9fUpLSSAVjn"
    client = WebClient(token=sltk)
    client.chat_postMessage(channel="powgen-monitor", text=slack_msg)

    main()
+377 KiB

File added.

No diff preview for this file type.

+377 KiB

File added.

No diff preview for this file type.

+71 −0
Original line number Diff line number Diff line
{
    "Diamond": "/SNS/PG3/IPTS-32378/nexus/PG3_62597.nxs.h5",
    "RunCycle": "2026-1_11A_CAL",
    "Instrument": "PG3",
    "Date": "2026-04-14",
    "SampleEnv": "PAC",
    "Notes": "test",
    "OutputDir": "/SNS/PG3/shared/CALIBRATION/autoreduce",
    "PDCalibration": {
        "TofBinningFirst": "300,-0.0008,16667",
        "TofBinningSecond": "300,-0.0005,16667",
        "TofBinningThird": "300,-0.0003,16667",
        "ConstrainPeakPositions": false,
        "MaxPeakWindow": 0.075,
        "MinimumPeakHeight": 3.0,
        "PeakWidthPercent": 0.008,
        "CalibrationParameters": "DIFC",
        "TZEROrange": "-50,50"
    },
    "ManualMaskFile": "2022-2_11A_CAL/Masks/PG3_43095_manual_mask.xml",
    "Diagnostics": {
        "PAC": {
            "NumMasks": [
                3790,
                500
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 200
        },
        "MAG": {
            "NumMasks": [
                10400,
                250
            ],
            "NumBadUnmasked": 300,
            "NumOutliers": 20
        },
        "OC": {
            "NumMasks": [
                4340,
                200
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 20
        },
        "MICAS": {
            "NumMasks": [
                3250,
                200
            ],
            "NumBadUnmasked": 350,
            "NumOutliers": 20
        },
        "LTJANIS": {
            "NumMasks": [
                4050,
                200
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 20
        },
        "JANISGAS": {
            "NumMasks": [
                3600,
                200
            ],
            "NumBadUnmasked": 30,
            "NumOutliers": 20
        }
    }
}
+71 −0
Original line number Diff line number Diff line
{
    "Diamond": "/SNS/PG3/IPTS-32378/nexus/PG3_62597.nxs.h5",
    "RunCycle": "2026-1_11A_CAL",
    "Instrument": "PG3",
    "Date": "2026-04-14",
    "SampleEnv": "PAC",
    "Notes": "",
    "OutputDir": "/SNS/PG3/shared/CALIBRATION/autoreduce",
    "PDCalibration": {
        "TofBinningFirst": "300,-0.0008,16667",
        "TofBinningSecond": "300,-0.0005,16667",
        "TofBinningThird": "300,-0.0003,16667",
        "ConstrainPeakPositions": false,
        "MaxPeakWindow": 0.075,
        "MinimumPeakHeight": 3.0,
        "PeakWidthPercent": 0.008,
        "CalibrationParameters": "DIFC",
        "TZEROrange": "-50,50"
    },
    "ManualMaskFile": "2022-2_11A_CAL/Masks/PG3_43095_manual_mask.xml",
    "Diagnostics": {
        "PAC": {
            "NumMasks": [
                3790,
                500
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 200
        },
        "MAG": {
            "NumMasks": [
                10400,
                250
            ],
            "NumBadUnmasked": 300,
            "NumOutliers": 20
        },
        "OC": {
            "NumMasks": [
                4340,
                200
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 20
        },
        "MICAS": {
            "NumMasks": [
                3250,
                200
            ],
            "NumBadUnmasked": 350,
            "NumOutliers": 20
        },
        "LTJANIS": {
            "NumMasks": [
                4050,
                200
            ],
            "NumBadUnmasked": 50,
            "NumOutliers": 20
        },
        "JANISGAS": {
            "NumMasks": [
                3600,
                200
            ],
            "NumBadUnmasked": 30,
            "NumOutliers": 20
        }
    }
}
 No newline at end of file
Loading