Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

removed property files #30

Merged
merged 1 commit into from
Mar 26, 2019
Merged

Conversation

jpatton-USGS
Copy link
Collaborator

This PR removes the property file (and cwbproperty class) associated with neic-traveltime in favor of an optional path passed as a function argument with a default of "./models/". At this time I have done the minimum required to support what neic-locator expects, with the intent that this path will become a command line argument or service config file during the full neic-traveltime code review.

@jpatton-USGS jpatton-USGS requested a review from jmfee-usgs March 1, 2019 20:28
if(TauUtil.modelPath == null) {
TauUtil.getProperties();
if (modelPath != null) {
TauUtil.modelPath = modelPath;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be made non-global.

An example use case is multiple AuxTtRef's processing different model directories from the same process...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not easily, a number of different classes reference the tau util model path

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as usgs/neic-locator#21 (comment) , using global's makes it difficult to access multiple modelPaths within the same process. Can those other things using model path receive it as a parameter or similar?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My goal with the TT library right now is to keep it functional to support neic-locator and locator evaluation. I would prefer that we make this comment into an issue that can be addressed when I do the code review/standards pass for TT lib after the locator is in testing.

@jmfee-usgs
Copy link
Contributor

#31

@jmfee-usgs jmfee-usgs merged commit 5b4e60b into usgs:master Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants