Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • mirror_ebrains
  • 776/refactor-controller-layer
  • dev/MIP-780/in_memory_udfs
  • kmeans_draft
  • dev/MIP-754/longitudinal_transform_specifications
  • max_memory_replication
  • dev/MIP-709/naive-bayes-validation
  • histogram_bug
  • refactor_algorithm_execution_data_models_views_creation
  • dev/MIP-675/anova-two-way-validation
  • kmeans
  • 0.23.1
  • 0.23.0
  • 0.22.0
  • 0.21.2
  • 0.20.1
  • 0.21.1
  • 0.21.0
  • 0.20.0
  • 0.19.1
  • 0.19.0
  • 0.18.1
  • 0.18.0
  • 0.17.1
  • 0.17.0
  • 0.16.3
  • 0.16.2
  • 0.16.1
  • 0.16.0
  • 0.15.0
  • 0.14.1
32 results

.codeclimate.yml

Blame
  • extract_current_pinnings.py 693 B
    #!/usr/env/python
    
    ''''Util to extract a list of pinnings from the current container'''
    
    import yaml
    import argparse
    
    
    apps = ['wafer', 'dls', 'simulation', 'slurmviz']
    
    
    for app in apps:
        speclist = ''
        try:
            spec = yaml.load(open(f'/opt/spack_views/visionary-{app}/.spack/visionary-{app}/spec.yaml'))
            for singlespec in spec['spec'][1:]:
                for k, v in singlespec.items():
                    speclist += f'{k}@{v["version"]}\n'
    
            print(f'Writing dependency list "{spec-dep-{app}.list}"')
            with open(f'spec-dep-{app}.list', 'w') as f:
                f.write(speclist)
        except:
            print('Script must be run from within a container.')
            raise