Skip to content
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

changed the formats file to read comma separated z file #263

Merged
merged 1 commit into from
Feb 13, 2022

Conversation

jasonmotha
Copy link
Contributor

I've checked this file and it looks like that the only place that this function was called was empirical db in seistech.

The proposed format going forward is keeping the comma delimited file (outputted from the VM code). - this is different to the tab/space delimited station and vs30 file.

Thoughts / changes?

@jpa198
Copy link
Contributor

jpa198 commented Jan 27, 2022

No issue from me with changing it, I'll leave it to the gm hazard group

@SnowNooDLe
Copy link
Contributor

Based on the file we saw this morning, non_uniform.z, this change does make sense

@jasonmotha
Copy link
Contributor Author

Oh, actually I just realised changing this way will mean that Joel's stuff won't work. 🤔

@claudio525
Copy link
Contributor

claudio525 commented Jan 27, 2022

@jasonmotha

Oh, actually I just realised changing this way will mean that Joel's stuff won't work. thinking

We should decide on one format (comma separated imo), and any files not of that format should just be converted (should be pretty straightforward?)

@jasonmotha
Copy link
Contributor Author

@jasonmotha

Oh, actually I just realised changing this way will mean that Joel's stuff won't work. thinking

We should decide on one format (comma separated imo), and any files not of that format should just be converted (should be pretty straightforward?)

Yeah, agreed. Do you mean one format for all station files? Or one format for Z specifically?

Historically, station files were tab delimited and workflow depends on them being so. But Z is currently only used in gm_hazard - with potential to be used in standard empirical calculations.
I think that's why the formats Z reader was tab delimited.

Either way, I think chatting about this on Monday would probably be best.

@claudio525
Copy link
Contributor

@jasonmotha We forgot to chat regarding the above today.
I recon ideally we would to comma separated across the board, but since thats not really feasible (due to the dependencies), I think just do comma separated for Z-files now. And then if the opportunity ever comes along to change the other files to comma separated as well, we should do it then.

@jasonmotha
Copy link
Contributor Author

@claudio525 Might be a good idea to chat about it tomorrow. Basically, I doubt we'd ever get to the point of updating station/vs30 files as they are used in EMOD3D.

Just had a quick look at project.py and I'll have to do a quick change there too.

@claudio525 claudio525 merged commit 6c120d6 into master Feb 13, 2022
@claudio525 claudio525 deleted the z_format_fix branch February 13, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants