Skip to main content

Randomization class and models for ambition/edc

Project description

pypi travis coverage

ambition-rando

Randomization class and model for Ambition

To rebuild the records in RandomizationList:

from django.core.exceptions import ObjectDoesNotExist
from django.contrib.sites.models import Site
from edc_registration.models import RegisteredSubject
from ambition_rando.models import RandomizationList

current_site = Site.objects.get_current()
for obj in RegisteredSubject.on_site.all():
    try:
        randobj = RandomizationList.objects.get(sid=obj.sid)
    except ObjectDoesNotExist:
        print(f'missing for {obj.subject_identifier}, {obj.sid}.')
    else:
        randobj.alocated_site=current_site
        randobj.subject_identifier=obj.subject_identifier
        randobj.allocated_datetime=obj.consent_datetime
        randobj.allocated=True
        randobj.save()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

ambition_rando-0.1.13-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file ambition-rando-0.1.13.macosx-10.13-x86_64.tar.gz.

File metadata

  • Download URL: ambition-rando-0.1.13.macosx-10.13-x86_64.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for ambition-rando-0.1.13.macosx-10.13-x86_64.tar.gz
Algorithm Hash digest
SHA256 c040ae683d2723959b91028e6f211e7a108c26b3460eb2b5834871d6929051b7
MD5 ef6fb56b0dd55f92e6d2334a159863aa
BLAKE2b-256 82cb1d2f27e2a4f351bb95f027bd33283d4ba8b3c027424c5ba00aa56b4840d1

See more details on using hashes here.

File details

Details for the file ambition_rando-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: ambition_rando-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for ambition_rando-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 365b6130352bb98427217c63a211dfa185bcf60f1a7c28642639bf2f5d2f69a4
MD5 eb8a9094b976c44347ca95b040f3c6cc
BLAKE2b-256 a96ff6a73eba5eacafa39be5e165f821a714ee41b2397a5ccc39cc8b477a2cae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page