Loading .notes/.linenoteplus 0 → 100644 +5 −0 Original line number Diff line number Diff line # The location of this `.linenoteplus` file determines # the path to store and retrieve your notes. # To relocate your notes, simply move or rename # the directory that contains this `.linenoteplus` file. No newline at end of file 2024-2_11A_CAL/LTJANIS_default.json 0 → 100644 +50 −0 Original line number Diff line number Diff line { "CalibDirectory": "/SNS/PG3/shared/CALIBRATION/2024-2_11A_CAL/", "InputFiles": { "CalibFile": "PG3_LTJANIS_d58031_2024-10-30.h5", "CharBackgrounds": "PG3_char_2024_10_31-HighRes_LT_JANIS_1.4MW.txt", "CharInPlane": "PG3_char_2024_10_31_JANIS_limit_1.4MW.txt", "GroupInPlane": "grouping/PG3_Grouping-IP.xml" }, "Params": { "VPeaksStripLambdaMax": 4.5, "SNSPowderReduction": { "PreserveEvents": true, "PushDataPositive": "None", "LowResRef": 0.0, "RemovePromptPulseWidth": 50.0, "TOFBinning": -0.0008, "BinInDspace": true, "BackgroundSmoothParams": "5, 2", "FilterBadPulses": 90.0, "ScaleData": 1.0, "SaveAs": "gsas topas and fullprof", "FinalDataUnits": "dSpacing" }, "TotalScattering": { "CentralWavelength": ".7, .8", "Threshold": 0.1, "QFitRange": "30., 50.", "QBinning": 0.01, "QMin": 0.9, "QMax": 30.0, "DeltaR": 0.01, "RMax": 100.0 } }, "MantidVersion": "6.10.20240711.1331", "MTSFourierTransform": { "TMIN": 3000, "TMAX": 270000, "QMin": 0.5, "QMax": 35.0, "RMax": 50.0, "RStep": 0.01, "QOffset": 0.0, "RCutoff": 1.0, "Lorch": false }, "MantidTotalScatteringVersion": "1.2.1rc3", "LastModifiedBy": "y8z", "LastModifiedTime": "07-16-2024 17:38:01 EST" } live_config.json +1 −1 Original line number Diff line number Diff line { "Cycle": "2024-2_11A_CAL", "SampleEnvironment": "AGES", "SampleEnvironment": "LTJANIS", "OverwriteUserJsonFile": "Y", "ConfigFile": { "PAC": "PAC_default.json", Loading live_config_files/2024-2_11A_CAL/LTJANIS_default.json 0 → 100644 +35 −0 Original line number Diff line number Diff line { "CalibDirectory": "/SNS/PG3/shared/CALIBRATION/2024-2_11A_CAL/", "InputFiles": { "CalibFile": "PG3_LTJANIS_d58031_2024-10-30.h5", "CharBackgrounds": "PG3_char_2024_10_31-HighRes_LT_JANIS_1.4MW.txt", "CharInPlane": "PG3_char_2024_10_31_JANIS_limit_1.4MW.txt", "GroupInPlane": "grouping/PG3_Grouping-IP.xml" }, "Params": { "VPeaksStripLambdaMax": 4.5, "SNSPowderReduction": { "PreserveEvents": true, "PushDataPositive": "None", "LowResRef": 0, "RemovePromptPulseWidth": 50, "TOFBinning": -0.0008, "BinInDspace": true, "BackgroundSmoothParams": "5, 2", "FilterBadPulses": 10, "ScaleData": 100, "SaveAs": "gsas topas and fullprof", "FinalDataUnits": "dSpacing" }, "TotalScattering": { "CentralWavelength": ".7, .8", "Threshold": 0.1, "QFitRange": "30., 50.", "QBinning": 0.01, "QMin": 0.9, "QMax": 30.0, "DeltaR": 0.01, "RMax": 100.0 } } } pg3_lrc.py 0 → 100644 +159 −0 Original line number Diff line number Diff line import os import json import sys, traceback central_config = "/SNS/PG3/shared/livereduce/live_config.json" print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] Central configuration file used for live reduction,") print(f"[Info] {central_config}") print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") try: with open(central_config, "r") as f: input_c_config = json.load(f) except json.JSONDecodeError as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] JSON decoding error: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except Exception as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] An error occurred: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) if "Cycle" not in input_c_config.keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print( "[Error] No 'Cycle' found in the central configuration file," "[Error] " + central_config ) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: cycle = input_c_config["Cycle"] if "SampleEnvironment" not in input_c_config.keys(): print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] No 'SampleEnvironment' found in the central configuration " "[Error] file, " + central_config ) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: sam_env = input_c_config["SampleEnvironment"] if sam_env not in input_c_config["ConfigFile"].keys(): print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] No configuration file found for the sample environment,") print("[Error] " + sam_env) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: config_file = input_c_config["ConfigFile"][sam_env] config_file_f = os.path.join( "/SNS/PG3/shared/livereduce/live_config_files", cycle, config_file ) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] Cycle: " + cycle) print("[Info] Sample Environment: " + sam_env) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] livereduction configuration file used,") print("[Info] " + config_file_f) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") try: with open(config_file_f, "r") as f: input_config = json.load(f) except FileNotFoundError: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print( "[Error] livereduction configuration file not found. Please " "make sure the following file exists," ) print("[Error] " + config_file_f) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except json.JSONDecodeError as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] JSON decoding error: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except Exception as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] An error occurred: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) must_keys = ["CalibDirectory", "InputFiles"] infiles_must_keys = ["CalibFile", "CharBackgrounds", "CharInPlane"] for key in must_keys: if key not in input_config.keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print(f"[Error] No {key} found in {config_file_f}.") print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n") os._exit(1) for key in infiles_must_keys: if key not in input_config["InputFiles"].keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print( f"[Error] No {key} found under 'InputFiles' in {config_file_f}." ) print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n") os._exit(1) print( "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" ) print( "[Info] Seeing this message means no obvious issues " "found in the livereduction setup." ) print( "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n" ) Loading
.notes/.linenoteplus 0 → 100644 +5 −0 Original line number Diff line number Diff line # The location of this `.linenoteplus` file determines # the path to store and retrieve your notes. # To relocate your notes, simply move or rename # the directory that contains this `.linenoteplus` file. No newline at end of file
2024-2_11A_CAL/LTJANIS_default.json 0 → 100644 +50 −0 Original line number Diff line number Diff line { "CalibDirectory": "/SNS/PG3/shared/CALIBRATION/2024-2_11A_CAL/", "InputFiles": { "CalibFile": "PG3_LTJANIS_d58031_2024-10-30.h5", "CharBackgrounds": "PG3_char_2024_10_31-HighRes_LT_JANIS_1.4MW.txt", "CharInPlane": "PG3_char_2024_10_31_JANIS_limit_1.4MW.txt", "GroupInPlane": "grouping/PG3_Grouping-IP.xml" }, "Params": { "VPeaksStripLambdaMax": 4.5, "SNSPowderReduction": { "PreserveEvents": true, "PushDataPositive": "None", "LowResRef": 0.0, "RemovePromptPulseWidth": 50.0, "TOFBinning": -0.0008, "BinInDspace": true, "BackgroundSmoothParams": "5, 2", "FilterBadPulses": 90.0, "ScaleData": 1.0, "SaveAs": "gsas topas and fullprof", "FinalDataUnits": "dSpacing" }, "TotalScattering": { "CentralWavelength": ".7, .8", "Threshold": 0.1, "QFitRange": "30., 50.", "QBinning": 0.01, "QMin": 0.9, "QMax": 30.0, "DeltaR": 0.01, "RMax": 100.0 } }, "MantidVersion": "6.10.20240711.1331", "MTSFourierTransform": { "TMIN": 3000, "TMAX": 270000, "QMin": 0.5, "QMax": 35.0, "RMax": 50.0, "RStep": 0.01, "QOffset": 0.0, "RCutoff": 1.0, "Lorch": false }, "MantidTotalScatteringVersion": "1.2.1rc3", "LastModifiedBy": "y8z", "LastModifiedTime": "07-16-2024 17:38:01 EST" }
live_config.json +1 −1 Original line number Diff line number Diff line { "Cycle": "2024-2_11A_CAL", "SampleEnvironment": "AGES", "SampleEnvironment": "LTJANIS", "OverwriteUserJsonFile": "Y", "ConfigFile": { "PAC": "PAC_default.json", Loading
live_config_files/2024-2_11A_CAL/LTJANIS_default.json 0 → 100644 +35 −0 Original line number Diff line number Diff line { "CalibDirectory": "/SNS/PG3/shared/CALIBRATION/2024-2_11A_CAL/", "InputFiles": { "CalibFile": "PG3_LTJANIS_d58031_2024-10-30.h5", "CharBackgrounds": "PG3_char_2024_10_31-HighRes_LT_JANIS_1.4MW.txt", "CharInPlane": "PG3_char_2024_10_31_JANIS_limit_1.4MW.txt", "GroupInPlane": "grouping/PG3_Grouping-IP.xml" }, "Params": { "VPeaksStripLambdaMax": 4.5, "SNSPowderReduction": { "PreserveEvents": true, "PushDataPositive": "None", "LowResRef": 0, "RemovePromptPulseWidth": 50, "TOFBinning": -0.0008, "BinInDspace": true, "BackgroundSmoothParams": "5, 2", "FilterBadPulses": 10, "ScaleData": 100, "SaveAs": "gsas topas and fullprof", "FinalDataUnits": "dSpacing" }, "TotalScattering": { "CentralWavelength": ".7, .8", "Threshold": 0.1, "QFitRange": "30., 50.", "QBinning": 0.01, "QMin": 0.9, "QMax": 30.0, "DeltaR": 0.01, "RMax": 100.0 } } }
pg3_lrc.py 0 → 100644 +159 −0 Original line number Diff line number Diff line import os import json import sys, traceback central_config = "/SNS/PG3/shared/livereduce/live_config.json" print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] Central configuration file used for live reduction,") print(f"[Info] {central_config}") print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") try: with open(central_config, "r") as f: input_c_config = json.load(f) except json.JSONDecodeError as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] JSON decoding error: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except Exception as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] An error occurred: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) if "Cycle" not in input_c_config.keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print( "[Error] No 'Cycle' found in the central configuration file," "[Error] " + central_config ) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: cycle = input_c_config["Cycle"] if "SampleEnvironment" not in input_c_config.keys(): print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] No 'SampleEnvironment' found in the central configuration " "[Error] file, " + central_config ) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: sam_env = input_c_config["SampleEnvironment"] if sam_env not in input_c_config["ConfigFile"].keys(): print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] No configuration file found for the sample environment,") print("[Error] " + sam_env) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) else: config_file = input_c_config["ConfigFile"][sam_env] config_file_f = os.path.join( "/SNS/PG3/shared/livereduce/live_config_files", cycle, config_file ) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] Cycle: " + cycle) print("[Info] Sample Environment: " + sam_env) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+") print("[Info] livereduction configuration file used,") print("[Info] " + config_file_f) print("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n") try: with open(config_file_f, "r") as f: input_config = json.load(f) except FileNotFoundError: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print( "[Error] livereduction configuration file not found. Please " "make sure the following file exists," ) print("[Error] " + config_file_f) print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except json.JSONDecodeError as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] JSON decoding error: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) except Exception as e: print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ) print("[Error] An error occurred: ", e) print("[Info] Consider use the tool below for checking the JSON file,") print("[Info] https://it.iris-home.net/json-prettify") print( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ) os._exit(1) must_keys = ["CalibDirectory", "InputFiles"] infiles_must_keys = ["CalibFile", "CharBackgrounds", "CharInPlane"] for key in must_keys: if key not in input_config.keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print(f"[Error] No {key} found in {config_file_f}.") print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n") os._exit(1) for key in infiles_must_keys: if key not in input_config["InputFiles"].keys(): print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") print( f"[Error] No {key} found under 'InputFiles' in {config_file_f}." ) print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n") os._exit(1) print( "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" ) print( "[Info] Seeing this message means no obvious issues " "found in the livereduction setup." ) print( "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n" )