Skip to content

Set Module as Thermal Cycled in Panthera #697

@ryansantos1174

Description

@ryansantos1174

Is your feature request related to a problem? Please describe.
When a module has been thermal cycled, we need to keep track of this. Panthera has now added in a thermal cycle attribute to the modules in panthera the GUI should now update this after a thermal cycle test has been ran.

Describe the solution you'd like
An example POST request snippet from Scott is shown below:

import requests

name_module = "EX0002"
subdetector = "TFPX"
username = "something"
userpass = "something"

url = "https://panthera.fit.edu/request_handlers/thermal_cycle_handler.php"

response = requests.post(url, data={
  "name_module": name_module,
  "subdetector": subdetector,
  "username": username,
  "userpass": userpass
})

if response.status_code == 200:
  print("Success:", response.text)
else:
  print(f"Error {response.status_code}:", response.text)

Describe alternatives you've considered
N/a

Additional context
The handling of thermal cycles in the GUI needs to be managed first. We should also add in a separate button to put in thermal cycled modules without also starting a thermal cycle test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions