This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import logging | |
import argparse | |
logger = logging.getLogger(__name__) | |
def main(args=sys.argv[1:]): | |
""" Main function for trip2dicom.py | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import log10 | |
from math import floor | |
def pretty(x, min_digits=4, exponent=2): | |
""" | |
A nicer way to print floats than the {:g} format. | |
min_digits: the minimum number of significant digits which will be printed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
int main(void) { | |
size_t *s; | |
double *d; | |
int *i; |
OlderNewer