PHP Warning: mysqli_query(): (HY000/1030): Got error 28 from storage engine in /home/ftp/u/umxopinm/wwwroot/wp-includes/wp-db.php on line 2033 WordPress数据库查询SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (819) ORDER BY t.name ASC 时发生Got error 28 from storage engine错误,这是由require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/shapely/page-templates/full-width.php'), get_header, locate_template, load_template, require_once('/themes/shapely/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_permalink, get_the_category, get_the_terms, wp_get_object_terms, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms查询的 PHP Warning: mysqli_query(): (HY000/1030): Got error 28 from storage engine in /home/ftp/u/umxopinm/wwwroot/wp-includes/wp-db.php on line 2033 WordPress数据库查询SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (565) ORDER BY t.name ASC 时发生Got error 28 from storage engine错误,这是由require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/shapely/page-templates/full-width.php'), get_header, locate_template, load_template, require_once('/themes/shapely/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_permalink, get_the_category, get_the_terms, wp_get_object_terms, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms查询的

Codes

Codes

Plot Ratio Histograms

Python Codes:

import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import linecache

def get_line_content(txt_path, line_num):
    return linecache.getline(txt_path, line_num + 1).strip()

# left_ratio list: num = 2; right_ratio list: num = 4
def get_data_list(txt_path, num):
    ratio = []
    count = 0
    file_length = len(open(txt_path).readlines())
    while count <= file_length - 1:
        ratio.append(float(get_line_content(txt_path, count+num)))
        count = count + 5
    return ratio

def normfun(x,mu,sigma):
    pdf = np.exp(-((x-mu)**2)/(2*sigma**2))/(sigma*np.sqrt(2*np.pi))
    return pdf

def draw_hist(left_data, right_data):
    left_bins = np.linspace(min(left_data),max(left_data),80)
    plt.hist(left_data, left_bins, normed=1, facecolor='blue', alpha=0.5)
    # normal distribution
    left_mu =np.mean(left_data)
    left_sigma =np.std(left_data) 
    left_x = np.arange(min(left_data),max(left_data),0.001) 
    left_y = normfun(left_x, left_mu, left_sigma)
    plt.plot(left_x,left_y)
    plt.title(r'Eyebrow-Eye Histogram : $\mu=1.9790$,$\sigma=0.1888$')

    right_bins = np.linspace(min(right_data),max(right_data),80)
    plt.hist(right_data, right_bins, normed=1, facecolor='red', alpha=0.5)
    # normal distribution
    right_mu =np.mean(right_data)
    right_sigma =np.std(right_data) 
    right_x = np.arange(min(right_data),max(right_data),0.001) 
    right_y = normfun(right_x, right_mu, right_sigma)
    plt.plot(right_x,right_y)

    print("left:", left_mu, left_sigma)
    plt.show()

def main():
    txt_path = "D:/Lab/Jiaying_Li/keypoints/eye-eyebrow ratio/euro_male_eye-eyebrow ratio.txt"
    left_ratio = get_data_list(txt_path, 2)
    right_ratio = get_data_list(txt_path, 4)
    draw_hist(left_ratio, right_ratio)

if __name__ == "__main__":
    main()
PHP Warning: mysqli_query(): (HY000/1030): Got error 28 from storage engine in /home/ftp/u/umxopinm/wwwroot/wp-includes/wp-db.php on line 2033 WordPress数据库查询SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (801, 805, 812, 815) ORDER BY t.name ASC 时发生Got error 28 from storage engine错误,这是由require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/shapely/page-templates/full-width.php'), get_template_part, locate_template, load_template, require('/themes/shapely/template-parts/content.php'), do_action('shapely_single_after_article'), WP_Hook->do_action, WP_Hook->apply_filters, Shapely_Related_Posts->output_related_posts, Shapely_Related_Posts->get_related_posts, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, _prime_post_caches, update_post_caches, update_object_term_cache, wp_get_object_terms, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms查询的 PHP Warning: mysqli_query(): (HY000/1030): Got error 28 from storage engine in /home/ftp/u/umxopinm/wwwroot/wp-includes/wp-db.php on line 2033 WordPress数据库查询SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (819) ORDER BY t.name ASC 时发生Got error 28 from storage engine错误,这是由require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/shapely/page-templates/full-width.php'), get_template_part, locate_template, load_template, require('/themes/shapely/template-parts/content.php'), do_action('shapely_single_after_article'), WP_Hook->do_action, WP_Hook->apply_filters, Shapely_Related_Posts->output_related_posts, Shapely_Related_Posts->get_related_posts, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms查询的
Kathleen Li

发表评论

电子邮件地址不会被公开。 必填项已用*标注