code stringlengths 3 6.57k |
|---|
subprocess.call(cmd_time_gp, shell=True) |
os.path.join(base_output_path, 'strength.average.log.csv') |
format(os.path.join(base_output_path, 'strength.average.log_time.gp') |
subprocess.call(cmd_time, shell=True) |
subprocess.call(cmd_time_gp, shell=True) |
os.path.join(base_output_path, 'training.average.log.csv') |
format(os.path.join(base_output_path, 'training.average.log_time.gp') |
subprocess.call(cmd_time, shell=True) |
subprocess.call(cmd_time_gp, shell=True) |
print(e) |
print('# Copy the results...') |
shutil.move("hcbr.global.log.csv", os.path.join(base_output_path, "hcbr.global.log.csv") |
shutil.move("{}_casebase.txt".format(instance_name) |
os.path.join(base_output_path, "{}_casebase.txt".format(instance_name) |
shutil.move("{}_outcomes.txt".format(instance_name) |
os.path.join(base_output_path, "{}_outcomes.txt".format(instance_name) |
format(instance_name, seed, average_accuracy / float(k) |
sys.stderr.write(msg) |
print(msg) |
main() |
set_cam_pose(cam_radius=1, cam_deg=45, cam_x_deg=None, cam=None) |
deg2rad(cam_deg) |
random.uniform(0, 360) |
deg2rad(cam_x_deg) |
np.sin(cam_rad) |
np.cos(cam_x_rad) |
np.sin(cam_x_rad) |
set_cam_intrinsic(cam, intrinsic_K, hw=None) |
abs(x - y) |
near(intrinsic_K[0][1], 0) |
near(intrinsic_K[1][0], 0) |
remove_useless_data() |
bpy.data.meshes.remove(block) |
bpy.data.materials.remove(block) |
bpy.data.textures.remove(block) |
bpy.data.images.remove(block) |
clear_all() |
bpy.data.objects.remove(obj) |
in ("MESH", "LIGHT", "CURVE") |
remove_useless_data() |
set_shading_mode(mode="SOLID", screens=[]) |
set_shading_mode("RENDERED", bpy.data.screens) |
add_stage(size=2, transparency=False) |
bpy.ops.mesh.primitive_cube_add(size=size, location=(0, 0, -size / 2) |
bpycv.activate_obj(stage) |
bpy.ops.rigidbody.object_add() |
bpy.data.materials.new("transparency_stage_bpycv") |
material.node_tree.nodes.clear() |
bpycv.activate_node_tree(material.node_tree) |
bpycv.Node("ShaderNodeOutputMaterial") |
stage.data.materials.append(material) |
Copyright (C) |
files (the "Software") |
logging.getLogger(__name__) |
TxMultiGeneratorMultiSite(txmultigeneratorbase.TxMultiGeneratorBase) |
containing (site_index,build_period,decommissioning_period) |
__init__(self) |
txmultigeneratorbase.TxMultiGeneratorBase.__init__(self) |
get_config_spec(self) |
format (name, conversion function, default) |
e.g. ('capex', float, 2.0) |
e.g. ('name', None, None) |
optional (default 0) |
txmultigeneratorbase.TxMultiGeneratorBase.get_config_spec(self) |
complete_configuration_pre_expand(self) |
isinstance(lifetime_yrs, dict) |
lifetime_yrs.itervalues() |
not (float(int(div) |
not (float(int(div) |
str(error) |
str(time_period_yrs) |
mureilexception.ConfigException(msg, {}) |
self.set_startup_state(self.config['startup_data_string']) |
len(self.config['params_to_site_data_string']) |
get_data_types(self) |
len(self.config['startup_data_name']) |
data_types.append(self.config['startup_data_name']) |
len(self.config['params_to_site_data_name']) |
data_types.append(self.config['params_to_site_data_name']) |
set_data(self, data) |
if (len(startup_data_name) |
and (startup_data_name in data) |
self.set_startup_state(data[startup_data_name]) |
if (len(params_to_site_name) |
and (params_to_site_name in data) |
set_startup_state(self, startup_data) |
len(startup_data) |
numpy.array(startup_data) |
not (len(startup_data.shape) |
not (startup_data.shape[1] == 4) |
str(startup_data.shape) |
but (n, 4) |
list(set(startup_data[:,2].tolist() |
self.extra_periods.sort() |
range(startup_data.shape[0]) |
int(startup_data[i, 0]) |
int(startup_data[i, 2]) |
int(startup_data[i, 3]) |
append(new_entry) |
append(new_entry) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.