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

issue #22 : fix examples #27

Merged
merged 2 commits into from
Mar 31, 2021
Merged

Conversation

geoffreyp
Copy link
Contributor

fix readme.md and example in the documentation

README.md Outdated
@@ -34,20 +45,19 @@ The package is available in pypi with a linux environment for python 3.6, 3.7, 3
###############################
# The file is available here : https://github.com/moead-framework/data/blob/master/problem/RMNK/Instances/rmnk_0_2_100_1_0.dat
# Others instances are available here : https://github.com/moead-framework/data/tree/master/problem/RMNK/Instances
instance_file = "rmnk_0_2_100_1_0.dat"
instance_file = "moead_framework/test/data/instances/rmnk_0_2_100_1_0.dat"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would revert the full path to just the filename, I don't think you can guarantee that people will create their example file from this README in your repo directory, since you also offer it to be pip installable.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sjvrijn see #16 and #17

Copy link
Contributor

Choose a reason for hiding this comment

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

@chkoar I agree that these issues still have to be sufficiently addressed, and the result of that should also be applied to update these examples. But I think that is separate from the main issue I'm pointing out in this line, which is that an example file should not explicitly include a relative path like this, as there is no guarantee that path can be successfully resolved wherever the user may decide to run their example. Especially when this package is pip installed, this relative path will always fail

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@geoffreyp
Copy link
Contributor Author

the full path of files is reverted and I fixed the code formatting in 22534e9 of this PR

@geoffreyp geoffreyp linked an issue Mar 31, 2021 that may be closed by this pull request
@geoffreyp geoffreyp merged commit f9aba01 into moead-framework:master Mar 31, 2021
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.

[joss-reviews#2974] Examples give errors
3 participants