Skip to content

Conversation

@Thechopsee
Copy link

No description provided.

} catch (IOException | ModuleException e) {
myLogger.error("Some error accessing the reference service and dataset: "+e.getMessage());
} catch (ExecutionException e) {
e.printStackTrace();
Copy link
Member

Choose a reason for hiding this comment

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

use logger

int numCompletedTasks = 0;

final ExecutorService executorService = Executors.newFixedThreadPool( numCellCreatorThreads );
//TODO FIND N5 WRITER AND MAKE HIM CHANGABLE
Copy link
Member

Choose a reason for hiding this comment

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

It is possible to make TODO before pull request.


di.compression = this.compression.equals("none") ? "raw" : this.compression;

//TODO totally random solution
Copy link
Member

Choose a reason for hiding this comment

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

Is it still true - it should not be in a master branch this kind of solution.

di.angleResolution = new DatasetInfo.ResolutionWithOwnUnit(angle_res, angle_unit);

di.compression = this.compression.equals("none") ? "raw" : this.compression;
//di.compression = this.compression.equals("none") ? "raw" : this.compression;
Copy link
Member

Choose a reason for hiding this comment

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

Remove commented part of code before integration.


try {
final HttpURLConnection connection = (HttpURLConnection)new URL("http://"+this.url+"/datasets").openConnection();
String add="/datasets";
Copy link
Member

Choose a reason for hiding this comment

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

why the local variable is introduced?

/** updates currentResLevel given the current choice in resolutionLevelsAsStr,
sets currentResLevel to null when resolutionLevelsAsStr is not valid */
protected void matchResLevel() {
//TODO CLEAR
Copy link
Member

Choose a reason for hiding this comment

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

make todo

protected void matchResLevel() {
//TODO CLEAR
myLogger.info("going to match against: "+resolutionLevelsAsStr);
System.out.println(resolutionLevelsAsStr);
Copy link
Member

Choose a reason for hiding this comment

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

do not use println for logging.

public List<Integer> versions;
public String label;


Copy link
Member

Choose a reason for hiding this comment

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

white space may be removed.

@Thechopsee
Copy link
Author

Cleaned up from old TODOS etc.
+added explanation to solution

@Thechopsee Thechopsee requested a review from kozusznik April 21, 2023 15:45
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.

2 participants