-
Notifications
You must be signed in to change notification settings - Fork 2
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
164 checking for inconsistencies in parsers and writers methods #170
164 checking for inconsistencies in parsers and writers methods #170
Conversation
…been split into write data and metadata). Read and write XML tests updated to work with the new methods.
…ts to work with the new reader and writers.
Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
|
||
|
||
def write( | ||
datasets: Sequence[STR_TYPES], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to structures, these are not datasets when we write metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
with open(output_path, "w", encoding="UTF-8", errors="replace") as f: | ||
f.write(outfile) | ||
|
||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant, please remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It raises a mypy error if the return None is missing
…writing and removing redundancies Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
Closing as it is included in #172 |
Updated XML reader and writers with the new signature.
reader:
def read(infile: Union[str, Path], validate: bool = False, use_dataset_id: bool = False)
writer:
def write(datasets: Sequence[PandasDataset], output_path: str = "", prettyprint: bool = True, header: Optional[Header] = Header(), dimension_at_observation: Optional[Dict[str, str]] = None)