Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Propositions of test_umath_accuracy improvements #16115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
Loading
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor refactor
  • Loading branch information
Pan Jan committed Apr 30, 2020
commit 5d4ec507d7ab83dc4f3f955ac5411e1608e0858c
19 changes: 11 additions & 8 deletions 19 numpy/core/tests/data/generate_umath_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
import argparse
import mpmath

parser = argparse.ArgumentParser(description='Generate umath data. '
'Input file can only contain hex numbers in separate rows, '
'empty lines and lines starting with "#" (comments)')
parser = argparse.ArgumentParser(
description='Generate umath data. '
'Input file can only contain hex numbers in separate rows, '
'empty lines and lines starting with "#" (comments).')
parser.add_argument('-i', '--input_file', type=str, required=True,
help="Name of file with inputs used to generate test data")
parser.add_argument('-f', '--funcname', required=True, help="Name of mpmath function used to generate data.")
help="Name of file with inputs used to generate test data.")
parser.add_argument('-f', '--funcname', required=True,
help="Name of mpmath function used to generate data.")
parser.add_argument('-o', '--output_file', type=str, required=True,
help="Name of output file. Should be of the form umath-validation-set-<funcname>")
help="Name of output file. Should be of the form "
"umath-validation-set-<funcname>.")
parser.add_argument('--dtype', type=str, required=True,
help="dtype of data")
parser.add_argument('--ulperror', type=int, default=2,
help="dtype of data")
parser.add_argument('--ulperror', type=int, default=2)

args = parser.parse_args()


Expand Down
Empty file.
12 changes: 7 additions & 5 deletions 12 numpy/core/tests/data/update_umath_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

parser = argparse.ArgumentParser(
description="Update umath data. "
"Input file can only contain lines of format described in README "
"possibly without `name` entry. "
"Script can change `name` entries to guarantee their uniqueness.")
"Input file can only contain lines of format described "
"in README possibly without `name` entry. Script can change "
"`name` entries to guarantee their uniqueness.")
parser.add_argument('-i', '--input_file', type=str, required=True,
help="Name of data file.")
parser.add_argument('-f', '--funcname', required=True, help="Name of mpmath function used to generate data.")
parser.add_argument('-f', '--funcname', required=True,
help="Name of mpmath function used to generate data.")
parser.add_argument('-o', '--output_file', type=str, required=True,
help="Name of output file. Should be of the form umath-validation-set-<funcname>")
help="Name of output file. Should be of the form "
"umath-validation-set-<funcname>")

args = parser.parse_args()

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.