-
Notifications
You must be signed in to change notification settings - Fork 0
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
alc and gex header fix #10
base: master
Are you sure you want to change the base?
Conversation
@@ -142,13 +142,14 @@ def _un_split_layer_columns(data): | |||
|
|||
def _dump(data, file, alcfile=None): | |||
df = _un_split_layer_columns(data) | |||
for key, value in data['model_info'].items(): |
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.
I'd propose adding separate argument skip_header
or somesuch, as this throws away info in a non-obvious way?
@@ -27,10 +37,19 @@ def is_supported_field(fieldname): | |||
def _dump(xyz, f, columns=None): | |||
if columns is None: | |||
columns = xyz["file_meta"]["columns"] | |||
else: |
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.
Maybe split this into a separate function?
columns = clean_column_names(columns)
A bit sceptical to including 9999 verbatim as a NaN value... Isn't this specified in a header in many xyz files? Possibly better to filter in the dataframe rather than in parsing maybe? |
Did some minor modifications, so that Aarhus Workbench can read the xyz-data and alc-file written with libaarhus.dump(...)
Might be a bit ugly but is working. Feel free to change the coding to be more "pythonic" ;-).
Did the following modifications:
Gate_Ch01_45
notGate_Ch01_[44]
.Gate_Ch01_01
instead ofGate_Ch01_[00]
).data['model_info']
must be skipped and not written to file.