dchaley / deepcell-imaging

Tools & guidance to scale DeepCell imaging on Google Cloud Batch
7 stars 2 forks source link

Get just the machine type from metadata #186

Closed dchaley closed 3 months ago

dchaley commented 4 months ago

When using the metadata server to get the machine type on Batch, it returns a larger string: eg: projects/672545053142/machineTypes/n2-standard-8

We only need the n2-standard-8 part of this.

This needs to happen in benchmark.py and the notebook as well.