Skip to content

Instantly share code, notes, and snippets.

View wkerzendorf's full-sized avatar

Wolfgang Kerzendorf wkerzendorf

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wkerzendorf
wkerzendorf / gist:71cae173fdb866e911995e881e216fa4
Created February 12, 2020 16:15
run-dalek-jobarray.sbatch
#!/bin/bash
#SBATCH --job-name=dalek-jobarray
#SBATCH --nodes=1
#SBATCH --cpus-per-task=20
#SBATCH --mem=40GB
#SBATCH --time=02:00:00
#SBATCH --array=0-300
### ACTIVATING CONDA ####
#### implementation 1 ####
class GenericModel(object):
def __init__(self, *args):
for property in args:
self.cells_property = {some dictionary containing each cell property}
# example
self.cells_property = {'velocity':Velocity(asdasd)}
self.__dict__[property.name] = property
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class QSeries(pd.Series):
_metadata = ["unit", "descriptor"]
@property
def _constructor(self):
return QSeries
@property
def _constructor_expanddim(self):
return QDataFrame