Skip to content

Commit

Permalink
wrote the factory method for parsing XML file and store in attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
bc299 committed Jan 3, 2024
1 parent d889b55 commit 187468b
Show file tree
Hide file tree
Showing 4,014 changed files with 978,706 additions and 45,319 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dbdpy-dev
dbdpy-dev
data
8 changes: 8 additions & 0 deletions dbdpy-env/bin/f2py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/Users/billchen/Desktop/dbdpy/dbdpy-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
8 changes: 8 additions & 0 deletions dbdpy-env/bin/pip3.11
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/Users/billchen/Desktop/dbdpy/dbdpy-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

Large diffs are not rendered by default.

1,096 changes: 1,096 additions & 0 deletions dbdpy-env/lib/python3.9/site-packages/numpy-1.26.3.dist-info/METADATA

Large diffs are not rendered by default.

1,407 changes: 1,407 additions & 0 deletions dbdpy-env/lib/python3.9/site-packages/numpy-1.26.3.dist-info/RECORD

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Wheel-Version: 1.0
Generator: meson
Root-Is-Purelib: false
Tag: cp39-cp39-macosx_11_0_arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[array_api]
numpy = numpy.array_api

[pyinstaller40]
hook-dirs = numpy:_pyinstaller_hooks_dir

[console_scripts]
f2py = numpy.f2py.f2py2e:main

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
156 changes: 156 additions & 0 deletions dbdpy-env/lib/python3.9/site-packages/numpy/__config__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# This file is generated by numpy's build process
# It contains system_info results at the time of building this package.
from enum import Enum
from numpy.core._multiarray_umath import (
__cpu_features__,
__cpu_baseline__,
__cpu_dispatch__,
)

__all__ = ["show"]
_built_with_meson = True


class DisplayModes(Enum):
stdout = "stdout"
dicts = "dicts"


def _cleanup(d):
"""
Removes empty values in a `dict` recursively
This ensures we remove values that Meson could not provide to CONFIG
"""
if isinstance(d, dict):
return {k: _cleanup(v) for k, v in d.items() if v and _cleanup(v)}
else:
return d


CONFIG = _cleanup(
{
"Compilers": {
"c": {
"name": "clang",
"linker": "ld64",
"version": "14.0.0",
"commands": "cc",
},
"cython": {
"name": "cython",
"linker": "cython",
"version": "3.0.7",
"commands": "cython",
},
"c++": {
"name": "clang",
"linker": "ld64",
"version": "14.0.0",
"commands": "c++",
},
},
"Machine Information": {
"host": {
"cpu": "aarch64",
"family": "aarch64",
"endian": "little",
"system": "darwin",
},
"build": {
"cpu": "aarch64",
"family": "aarch64",
"endian": "little",
"system": "darwin",
},
"cross-compiled": bool("False".lower().replace("false", "")),
},
"Build Dependencies": {
"blas": {
"name": "openblas64",
"found": bool("True".lower().replace("false", "")),
"version": "0.3.23.dev",
"detection method": "pkgconfig",
"include directory": r"/opt/arm64-builds/include",
"lib directory": r"/opt/arm64-builds/lib",
"openblas configuration": "USE_64BITINT=1 DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= SANDYBRIDGE MAX_THREADS=3",
"pc file directory": r"/usr/local/lib/pkgconfig",
},
"lapack": {
"name": "dep4409210864",
"found": bool("True".lower().replace("false", "")),
"version": "1.26.3",
"detection method": "internal",
"include directory": r"unknown",
"lib directory": r"unknown",
"openblas configuration": "unknown",
"pc file directory": r"unknown",
},
},
"Python Information": {
"path": r"/private/var/folders/76/zy5ktkns50v6gt5g8r0sf6sc0000gn/T/cibw-run-8524sa_l/cp39-macosx_arm64/build/venv/bin/python",
"version": "3.9",
},
"SIMD Extensions": {
"baseline": __cpu_baseline__,
"found": [
feature for feature in __cpu_dispatch__ if __cpu_features__[feature]
],
"not found": [
feature for feature in __cpu_dispatch__ if not __cpu_features__[feature]
],
},
}
)


def _check_pyyaml():
import yaml

return yaml


def show(mode=DisplayModes.stdout.value):
"""
Show libraries and system information on which NumPy was built
and is being used
Parameters
----------
mode : {`'stdout'`, `'dicts'`}, optional.
Indicates how to display the config information.
`'stdout'` prints to console, `'dicts'` returns a dictionary
of the configuration.
Returns
-------
out : {`dict`, `None`}
If mode is `'dicts'`, a dict is returned, else None
See Also
--------
get_include : Returns the directory containing NumPy C
header files.
Notes
-----
1. The `'stdout'` mode will give more readable
output if ``pyyaml`` is installed
"""
if mode == DisplayModes.stdout.value:
try: # Non-standard library, check import
yaml = _check_pyyaml()

print(yaml.dump(CONFIG))
except ModuleNotFoundError:
import warnings
import json

warnings.warn("Install `pyyaml` for better output", stacklevel=1)
print(json.dumps(CONFIG, indent=2))
elif mode == DisplayModes.dicts.value:
return CONFIG
else:
raise AttributeError(
f"Invalid `mode`, use one of: {', '.join([e.value for e in DisplayModes])}"
)
Loading

0 comments on commit 187468b

Please sign in to comment.