Skip to content

Instantly share code, notes, and snippets.

View Tobias-Fischer's full-sized avatar

Tobias Fischer Tobias-Fischer

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
def createPR(S_in, GThard, GTsoft=None):
GT = GThard.astype('bool') # ensure logical-datatype
S = S_in.copy()
if GTsoft is not None:
S[GTsoft & ~GT] = S.min()
# init precision and recall vectors
@Tobias-Fischer
Tobias-Fischer / qpeek
Created March 10, 2022 23:52
qpeek for QUT HPC
#!/bin/bash
# qpeek: look at output of a running job
#
# Version 1.0 by Justin Lee <jm.lee@qut.edu.au>, 31/8/2015
# Derived from the original Torque qpeek script by Ohio Supercomputer Center
# Rewritten in Bash and adapted for Altair PBS
usage_str="Usage: $(basename $0) [options] JOBID"
#!/usr/bin/env python
import subprocess
import pandas as pd
import re
result = subprocess.run(["pbsnodeinfo"], capture_output=True, text=True)
text_file = result.stdout
lines = text_file.split('\n')
GPUtype=[]
INFO :: Time taken to mark (prefix)
0 replacements in 0 files was 0.05 seconds
Files containing CONDA_PREFIX
-----------------------------
/Users/tobias/opt/anaconda3/conda-bld/ros_1595479080252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl :: binary :: lib/librosbag_default_encryption_plugins.dylib
lib/librosbag_default_encryption_plugins.dylib (binary): Patching
/Users/tobias/opt/anaconda3/conda-bld/ros_1595479080252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl :: binary :: lib/librosbag_storage.dylib
lib/librosbag_storage.dylib (binary): Patching
/Users/tobias/opt/anaconda3/conda-bld/ros_1595479080252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol
conda.exceptions.UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package openblas conflicts for:
ros-noetic-image-geometry -> opencv -> openblas[version='0.2.19|0.2.19.*|0.2.20|0.2.20.*|>=0.2.20,<0.2.21.0a0|>=0.3.3,<0.3.4.0a0|>=0.3.6,<0.3.7.0a0']
numpy=1.16 -> blas=[build=openblas] -> openblas[version='0.3.5.*|>=0.3.6,<0.3.7.0a0']
boost=1.72.0 -> numpy[version='>=1.14.6,<2.0a0'] -> openblas[version='>=0.2.20,<0.2.21.0a0|>=0.3.3,<0.3.4.0a0']
ros-noetic-cv-bridge -> opencv -> openblas[version='0.2.19|0.2.19.*|0.2.20|0.2.20.*|>=0.2.20,<0.2.21.0a0|>=0.3.3,<0.3.4.0a0|>=0.3.6,<0.3.7.0a0']
numpy=1.16 -> openblas[version='>=0.3.3,<0.3.4.0a0']
Packaging ros-noetic-python-qt-binding
INFO:conda_build.build:Packaging ros-noetic-python-qt-binding
INFO conda_build.build:build(1571): Packaging ros-noetic-python-qt-binding
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... WARNING:conda.models.version:Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
WARNING conda.models.version:get_matcher(531): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
WARNING:conda.models.version:Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2.*, but conda is ignoring the .* and treating it as 2
WARNING conda.models.version:get_matcher(531): Using .* with relational operator is superfluous
0 0.000002 0 ||| configuring
1 0.001469 0 ||| no policy found
2 0.001513 0 ||| default config file specified as robotInterface.ini
3 0.001542 0 ||| checking [/home/icub/robotInterface.ini] (pwd)
4 0.001568 0 ||| checking [/home/icub/.local/share/yarp/robots/iCubLondon01/robotInterface.ini] (robot)