TG-51 in a Test List

461 views
Skip to first unread message

Landon Clark

unread,
Dec 4, 2019, 1:21:38 PM12/4/19
to QATrack+
Has anyone figured out how to do a TG-51 calculation in a Test List?  I'm having trouble with coming up with a way to simultaneously calculate Pion/Ppol/kQ from a PDD(10)x, while also storing Pion/Ppol/kQ/PDD(10)x as constants for future monthly outputs.  Our monthly setup is a mini-TG51 in water where we only measure at one voltage.

Randle Taylor

unread,
Dec 21, 2019, 1:17:07 PM12/21/19
to Landon Clark, QATrack+
Hi Landon,

Not sure if this is what you're after or not, but you could define a test list for calculating Pion etc and then a second test list which has composite tests that use the Django ORM to pull in the most recent values for those parameters.  Or are you trying to do it within a single test list?

Randy

On Wed, 4 Dec 2019 at 13:21, Landon Clark <landon....@gmail.com> wrote:
Has anyone figured out how to do a TG-51 calculation in a Test List?  I'm having trouble with coming up with a way to simultaneously calculate Pion/Ppol/kQ from a PDD(10)x, while also storing Pion/Ppol/kQ/PDD(10)x as constants for future monthly outputs.  Our monthly setup is a mini-TG51 in water where we only measure at one voltage.

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/5009ed6d-60d9-4fe6-a3cd-eeee518b281d%40googlegroups.com.

Landon Clark

unread,
Dec 23, 2019, 11:45:43 AM12/23/19
to QATrack+
Yes, that is what I would like to do.

Testlist1 (TG-51 annual)
-calculate Pion/Ppol/etc using 6 measurements

Testlist2 (Monthly outputs performed after TG-51)
-use Django to lookup most recent Pion/Ppol/etc and apply it to average of 3 measurements

I'm having a little difficulty finding how to look them up in Django though.  I'd like to keep it as simple as possible so I can remember how it works later :)

On Saturday, December 21, 2019 at 11:17:07 AM UTC-7, Randle Taylor wrote:
Hi Landon,

Not sure if this is what you're after or not, but you could define a test list for calculating Pion etc and then a second test list which has composite tests that use the Django ORM to pull in the most recent values for those parameters.  Or are you trying to do it within a single test list?

Randy

On Wed, 4 Dec 2019 at 13:21, Landon Clark <landon...@gmail.com> wrote:
Has anyone figured out how to do a TG-51 calculation in a Test List?  I'm having trouble with coming up with a way to simultaneously calculate Pion/Ppol/kQ from a PDD(10)x, while also storing Pion/Ppol/kQ/PDD(10)x as constants for future monthly outputs.  Our monthly setup is a mini-TG51 in water where we only measure at one voltage.

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qat...@googlegroups.com.

Randle Taylor

unread,
Dec 23, 2019, 7:37:01 PM12/23/19
to QATrack+
You can fetch a previous result for a test like this:



pion_instances
= models.TestInstance.objects.filter(
    unit_test_info__test_id
=12345, # replace with your Pion test_id,
    unit_test_info__unit__number
=META['unit_number'], # limit to results from current unit
    test_list_instance__work_completed__lte
=META['work_started'],  # limit results to prior dates
    test_list_instance__in_progress
=False,  # exclude in progress results
    status__valid
=True,  # exclude any invalid data
    skipped
=False,  # exclude skipped results
)


try:
    latest
= pion_instances.latest("work_completed")  # get most recent result
    pion
= latest.value
except models.TestInstance.DoesNotExist:
    pion
= None


Hope that gets you headed in the right direction!

RT

Landon Clark

unread,
Dec 24, 2019, 2:26:35 PM12/24/19
to QATrack+
I think this is working in my monthly testlist. It's much simpler than I thought it was going to be. Thanks for your help!

Landon Clark

unread,
Dec 31, 2019, 1:36:26 PM12/31/19
to qat...@googlegroups.com
If anyone wants a test like this, here is a TestPack for TG-51 and the corresponding monthly output check.  The pelec and ndw are pulled from an "Equipment Calibration" for the corresponding electrometer and chamber variable in the dropdown.  The monthly values from the TG-51 come from pulling the test id number. 

Have a great New Years!

Landon
monthly.PNG
MonthlyOutputCheck.tpk
TG-51.tpk

Landon Clark

unread,
Jan 24, 2020, 11:53:31 AM1/24/20
to QATrack+
I used this TestList on a recent annual calibration and found a few bugs.  I updated the TestPack accordingly.  It did work pretty well compared to some of our spreadsheets.

Running these tests, I had a question:  would it be possible for QATrack+ to assign tests/testlists to not only a machine, but to an energy?  E.g. I could create a TG-51/TRS-398 once and assign it to the energies I want.  Also wouldn't need to skip energies that aren't available on the machine.

Thanks,
Landon

Randle Taylor

unread,
Jan 24, 2020, 3:03:34 PM1/24/20
to Landon Clark, QATrack+
Thanks for sharing Landon!

"would it be possible for QATrack+ to assign tests/testlists to not only a machine, but to an energy?"

There's a feature request open for that now, but I'm not sure when/if we will end up implementing it.

Randy

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/216f0c2e-ee78-42d9-8c8d-b1da8323abc8%40googlegroups.com.

Landon Clark

unread,
Jul 8, 2020, 1:02:56 PM7/8/20
to QATrack+
I now have several of these test retrievals in a monthly calibration TestList.  Sometimes when I go to Perform this monthly, I get a "Loading Monthly..." dialog that never fully loads.  Do you know what could be causing this?  It doesn't happen on other TestLists.  It might happen on slower computers that I run it from, but I'm not sure.

Thanks!
Landon

Randle Taylor

unread,
Jul 8, 2020, 4:57:54 PM7/8/20
to Landon Clark, QATrack+
Sounds like there is maybe a JavaScript error that is preventing the loading indicator from being cleared away.  If you open the browser console (F12) and reload that page do you see any errors logged?

Landon Clark

unread,
Aug 12, 2020, 7:11:26 PM8/12/20
to QATrack+
I was able to get that to happen today, and loaded the console in Chrome.  The only message I could find was:

DevTools failed to load SourceMap: Could not load content for https://....com/static/bootstrap/ccs/bootstrap.min.ccs.map:  HTTP error:  status code 404, net: : ERR_HTTP_RESPONSE_CODE_FAILURE.  

In this instance, it happened as we clicked Submit for the testlist.

Randle Taylor

unread,
Aug 12, 2020, 9:20:27 PM8/12/20
to Landon Clark, QATrack+
That failed to load sourcemap is nothing to worry about and won't affect anything. 

Are you saying the same "Loading Unit: TestListName" dialog that is shown on initial page load was shown again when you hit "Submit"?  That would be very strange.  Does this test list have a file upload test included in it?

Randy

Landon Clark

unread,
Aug 13, 2020, 7:38:27 PM8/13/20
to QATrack+
I don't remember the loading message that was displayed (it did have the loading dialog message with the background grayed out).  The loading message only showed at completion of the test list rather than first loading the page.  It doesn't have any file uploads in the test list, only composite and simple numerical values.  The good news was that we were able to do a file>print to save the entered values for later.

Landon

Randle Taylor

unread,
Aug 14, 2020, 9:19:22 PM8/14/20
to Landon Clark, QATrack+
Hi Landon,

Something very strange is going on.  That loading message should only be shown during the initial seconds of the page loading.  Honestly, I'm at a loss for how it could appear after clicking submit.    The only possibility I can think of is if for some reason loading the javascript and/or css files from your server took a very long time and you were able to enter data before the javascript for the page had actually initialized.  That's really grasping at straws though and  if that was the case the composite tests wouldn't actually get calculated.  I'm stumped unfortunately.

Randy

Landon Clark

unread,
Sep 7, 2020, 12:31:43 PM9/7/20
to QATrack+

I think what maybe happened was that a skip checkbox for a test normally skipped, wasn't checked.  It tried to refresh with a warning on the test saying that it was blank, but was stuck on the "loading ..." spinwheel.  Could that be possible?

Thanks!
Landon

Randle Taylor

unread,
Sep 8, 2020, 4:35:48 PM9/8/20
to QATrack+
Hi Landon,

That sounds more plausible.  If you submit the test list and it fails validation, it redirects you back to the same page so you can resolve the errors.  If the javascript for the page doesn't load correctly for some reason then you might see the spinner getting stuck.  Now, that doesn't explain *why* the js is not loading correctly.  Hard to say why that is occurring for you though.

RT

laurent...@gmail.com

unread,
Sep 10, 2020, 10:10:09 AM9/10/20
to QATrack+
Hi,
This is how we do it. I can give more details if you have questions.

Laurent.
Poster - linac calibration in QATrackplus.pdf

Kenni Engstrøm

unread,
May 27, 2026, 5:45:10 AM (6 days ago) May 27
to QATrack+
Hello, 

Laurent, I am currently setting up something in Odense, and I would be more than happy to see some more from the project. It sounds very well founded. 

best regards 
Kenni
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages