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

ma/#1028-update-default-config-for-iter-linkstats-output-4ci Updated … #1055

Conversation

mr-asif-nor
Copy link
Contributor

@mr-asif-nor mr-asif-nor commented Dec 17, 2018

Fixed #1028
…the linkstats module config to disable it effectively for writing linkstats.txt.gz file


This change is Reviewable

…the linkstats module config to disable it effectively for writing linkstats.txt.gz file
Copy link
Collaborator

@JustinPihony JustinPihony left a comment

Choose a reason for hiding this comment

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

It seems that it would be easier to set the default in beam-template and let that trickle down to all, unless I missed something

@mr-asif-nor
Copy link
Contributor Author

Its a matsim module config. Perhaps this is the right way to do this. I had a discussion on this with @wrashid He can better confirm.

Copy link
Contributor

@colinsheppard colinsheppard left a comment

Choose a reason for hiding this comment

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

I would prefer that we move away from using parameters in the MATSim configurations. If we need the MATSim parameter to be set, then we mutate them after reading the beam config options. For an example of this see BeamHelper line 388:

matsimConfig.controler().setWritePlansInterval(beamConfig.beam.outputs.writePlansInterval)

If this is not possible, i.e. if matsim doesn't let you mutate, then let's have a discussion and try to find a better way.

So this means that most of the changes you made in this PR would need to be reverted.

Reviewed 10 of 10 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @wrashid)

@colinsheppard
Copy link
Contributor

@mr-asif-nor please see what we're doing in this PR for an example of how we want this:

#1061

You could wait for that PR to be merged and then follow the example there.

@mr-asif-nor
Copy link
Contributor Author

Ok

…put-4ci' and 'master' of https://github.com/LBNL-UCB-STI/beam into ma/#1028-update-default-config-for-iter-linkstats-output-4ci

# Conflicts:
#	test/input/beamville/beam.conf
#	test/input/equil-square/equil-0.001k.conf
#	test/input/sf-light/sf-light-0.5k.conf
#	test/input/sf-light/sf-light-10k.conf
#	test/input/sf-light/sf-light-1k.conf
#	test/input/sf-light/sf-light-2.5k.conf
#	test/input/sf-light/sf-light-25k.conf
#	test/input/sf-light/sf-light-5k.conf
#	test/input/sf-light/sf-light.conf
@mr-asif-nor
Copy link
Contributor Author

@colinsheppard
I have resolved the conflicts and I have put the following config in the common/matsim.conf file
linkStats {
writeLinkStatsInterval = 0
averageLinkStatsOverIterations = 0
}

@colinsheppard
Copy link
Contributor

test!

Copy link
Contributor

@colinsheppard colinsheppard left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 10 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @wrashid)

@ghost ghost assigned colinsheppard Feb 5, 2019
@colinsheppard
Copy link
Contributor

test!

@colinsheppard colinsheppard merged commit 740d447 into master Feb 6, 2019
@ghost ghost removed the Review label Feb 6, 2019
@colinsheppard colinsheppard deleted the ma/#1028-update-default-config-for-iter-linkstats-output-4ci branch February 6, 2019 01:46
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.

3 participants