You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package would benefit from some homogenization so that all parser have some common methods (e.g., parse) with similar arguments / requirements, behavior / expectations and return values. For instance, sometimes we return the parsed result:
Most parsers have a
parse(...)
method that accept a raw string to be parsed such as:adsabs-pyingest/pyingest/parsers/arxiv.py
Line 52 in 15ae056
But others, act very differently. For instance:
adsabs-pyingest/pyingest/parsers/atel.py
Lines 55 to 61 in 15ae056
It would be convenient to separate the download action from the parse action.
adsabs-pyingest/pyingest/parsers/proquest.py
Line 62 in 15ae056
Unless we read the code and understand that the input is a file name (not a raw string) passed in the constructor and not in the parse method:
adsabs-pyingest/pyingest/parsers/proquest.py
Lines 23 to 27 in 15ae056
adsabs-pyingest/pyingest/parsers/affils.py
Line 67 in 15ae056
adsabs-pyingest/pyingest/parsers/gcncirc.py
Line 83 in 15ae056
It is again in the constructor that the input is passed, but this time is not a file but a raw string:
adsabs-pyingest/pyingest/parsers/affils.py
Lines 12 to 13 in 15ae056
adsabs-pyingest/pyingest/parsers/gcncirc.py
Lines 16 to 22 in 15ae056
The package would benefit from some homogenization so that all parser have some common methods (e.g.,
parse
) with similar arguments / requirements, behavior / expectations and return values. For instance, sometimes we return the parsed result:adsabs-pyingest/pyingest/parsers/arxiv.py
Line 125 in 15ae056
Sometimes we do not return but we store it in the object:
adsabs-pyingest/pyingest/parsers/proquest.py
Lines 232 to 234 in 15ae056
The text was updated successfully, but these errors were encountered: