Skip to content

Commit

Permalink
hxlquickmeta (#9): hxltype, create files with references to the sprea…
Browse files Browse the repository at this point in the history
…dsheets
  • Loading branch information
fititnt committed Feb 21, 2021
1 parent 0fb0e2c commit 56c366f
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 18 deletions.
14 changes: 2 additions & 12 deletions bin/hxlquickmeta
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,8 @@ import pandas as pd
import numpy as np
import Orange

# import smeta.base
import meta.base

print(meta.base.test())
# print(smeta.__file__)
# print(smeta.__package__)

# meta.base.test()
# hxlm.base.test()

# for path in sys.path:
# print(path)
# import meta.hxltype.base
# print(meta.hxltype.base.test())

# In Python2, sys.stdin is a byte stream; in Python3, it's a text stream
STDIN = sys.stdin.buffer
Expand Down
44 changes: 44 additions & 0 deletions bin/meta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# About /bin/meta/*

This folder have an very early draft used by
[/bin/hxlquickmeta](../hxlquickmeta).

The idea is eventually abstract more what was bootstraped on
EticaAI-Data_HXL-Data-Science-file-formats
<https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=1066910203>
simmilar to what libraries like Pandas and Numpy do it.

TODO: Look at other abstractions beyond numpy


<!--
> https://numpy.org/doc/stable/user/basics.rec.html
> Users looking to manipulate tabular data, such as stored in csv files, may
find other pydata projects more suitable, such as xarray, pandas, or DataArray.
These provide a high-level interface for tabular data analysis and are better
optimized for that use. For instance, the C-struct-like memory layout of
structured arrays in numpy can lead to poor cache behavior in comparison.
>> https://github.com/pydata/xarray
> Xarray introduces labels in the form of dimensions, coordinates and attributes
on top of raw NumPy-like arrays, which allows for a more intuitive, more
concise, and less error-prone developer experience. The package includes a
large and growing library of domain-agnostic functions for advanced analytics
and visualization with these data structures.
>> Xarray was inspired by and borrows heavily from pandas, the popular data
analysis package focused on labelled tabular data. It is particularly tailored
to working with netCDF files, which were the source of xarray's data model,
and integrates tightly with dask for parallel computing.
> benchmark https://github.com/pydata/xarray/issues/2799
>> netCDF
- https://www.unidata.ucar.edu/software/netcdf/examples/files.html
-->
6 changes: 0 additions & 6 deletions bin/meta/base.py

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions bin/meta/hxltype/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# *HXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=1066910203


def a1_func():
print("running a1_func()")

def test():
print("hello world")

3 changes: 3 additions & 0 deletions bin/meta/hxltype/data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# DataHXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=717813523
3 changes: 3 additions & 0 deletions bin/meta/hxltype/level.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# LevelHXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=1053765950
7 changes: 7 additions & 0 deletions bin/meta/hxltype/storage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# StorageHXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=211012023


# - https://numpy.org/doc/stable/user/basics.types.html
# - https://numpy.org/doc/stable/reference/generated/numpy.dtype.html#numpy.dtype
3 changes: 3 additions & 0 deletions bin/meta/hxltype/usage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# UsageHXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=617579056
3 changes: 3 additions & 0 deletions bin/meta/hxltype/weight.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# WeightHXLtype
# @see https://github.com/EticaAI/HXL-Data-Science-file-formats/issues/9
# @see https://docs.google.com/spreadsheets/d/1vFkBSharAEg5g5K2u_iDLCBvpWWPqpzC1hcL6QpFNZY/edit#gid=1507056660

0 comments on commit 56c366f

Please sign in to comment.